diff --git a/common/src/main/java/dev/architectury/hooks/level/ExplosionHooks.java b/common/src/main/java/dev/architectury/hooks/level/ExplosionHooks.java index a2f22d2e..7eeee2ba 100644 --- a/common/src/main/java/dev/architectury/hooks/level/ExplosionHooks.java +++ b/common/src/main/java/dev/architectury/hooks/level/ExplosionHooks.java @@ -18,7 +18,7 @@ */ package dev.architectury.hooks.level; -import dev.architectury.injectables.annotations.ExpectPlatform; + import net.minecraft.world.level.Explosion; import net.minecraft.world.phys.Vec3; diff --git a/neoforge/src/main/java/dev/architectury/networking/forge/NetworkManagerImpl.java b/neoforge/src/main/java/dev/architectury/networking/forge/NetworkManagerImpl.java index 1ffd1bb9..8700c099 100644 --- a/neoforge/src/main/java/dev/architectury/networking/forge/NetworkManagerImpl.java +++ b/neoforge/src/main/java/dev/architectury/networking/forge/NetworkManagerImpl.java @@ -105,13 +105,11 @@ public static void collectPackets(PacketSink sink, NetworkManager.Side side, Res static IPlayPayloadHandler createPacketHandler(NetworkManager.Side direction, Map map) { return (arg, context) -> { - NetworkManager.Side side = side(context.flow()); if (side != direction) return; ResourceLocation type = arg.buf().readResourceLocation(); PacketTransformer transformer = map.get(type); - if (transformer != null) { NetworkManager.PacketContext packetContext = new NetworkManager.PacketContext() { @Override