diff --git a/common/src/main/java/dev/architectury/impl/NetworkAggregator.java b/common/src/main/java/dev/architectury/impl/NetworkAggregator.java index 2d3e67ed..e9d9bf65 100644 --- a/common/src/main/java/dev/architectury/impl/NetworkAggregator.java +++ b/common/src/main/java/dev/architectury/impl/NetworkAggregator.java @@ -26,8 +26,6 @@ import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufUtil; import io.netty.buffer.Unpooled; -import net.fabricmc.api.EnvType; -import net.fabricmc.api.Environment; import net.minecraft.core.RegistryAccess; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.ByteBufCodecs; @@ -190,12 +188,10 @@ public static void registerS2CType(CustomPacketP public interface Adaptor { void registerC2S(CustomPacketPayload.Type type, StreamCodec codec, NetworkManager.NetworkReceiver receiver); - @Environment(EnvType.CLIENT) void registerS2C(CustomPacketPayload.Type type, StreamCodec codec, NetworkManager.NetworkReceiver receiver); Packet toC2SPacket(T payload); - @Environment(EnvType.CLIENT) Packet toS2CPacket(T payload); void registerS2CType(CustomPacketPayload.Type type, StreamCodec codec);