diff --git a/common/src/main/java/com/faboslav/friendsandfoes/network/NetworkChannel.java b/common/src/main/java/com/faboslav/friendsandfoes/network/NetworkChannel.java index 83125df90..bcb8be713 100644 --- a/common/src/main/java/com/faboslav/friendsandfoes/network/NetworkChannel.java +++ b/common/src/main/java/com/faboslav/friendsandfoes/network/NetworkChannel.java @@ -29,7 +29,6 @@ public final class NetworkChannel public NetworkChannel(String modid, String channel) { this.channel = new Identifier(modid, channel); - PacketChannelManager.registerChannel(this.channel); } public final > void registerPacket( diff --git a/common/src/main/java/com/faboslav/friendsandfoes/platform/PacketChannelManager.java b/common/src/main/java/com/faboslav/friendsandfoes/platform/PacketChannelManager.java index bf36fd0e9..0aaefd092 100644 --- a/common/src/main/java/com/faboslav/friendsandfoes/platform/PacketChannelManager.java +++ b/common/src/main/java/com/faboslav/friendsandfoes/platform/PacketChannelManager.java @@ -19,10 +19,6 @@ @ApiStatus.Internal public final class PacketChannelManager { - @ExpectPlatform - public static void registerChannel(Identifier name) { - throw new NotImplementedException(); - } @ExpectPlatform public static > void registerS2CPacket( diff --git a/fabric/src/main/java/com/faboslav/friendsandfoes/platform/fabric/PacketChannelManagerImpl.java b/fabric/src/main/java/com/faboslav/friendsandfoes/platform/fabric/PacketChannelManagerImpl.java index e15db24f1..a4399aaa5 100644 --- a/fabric/src/main/java/com/faboslav/friendsandfoes/platform/fabric/PacketChannelManagerImpl.java +++ b/fabric/src/main/java/com/faboslav/friendsandfoes/platform/fabric/PacketChannelManagerImpl.java @@ -25,9 +25,6 @@ public final class PacketChannelManagerImpl private PacketChannelManagerImpl() { } - public static void registerChannel(Identifier name) { - } - public static > void registerS2CPacket( Identifier channel, Identifier id, diff --git a/neoforge/src/main/java/com/faboslav/friendsandfoes/platform/neoforge/PacketChannelManagerImpl.java b/neoforge/src/main/java/com/faboslav/friendsandfoes/platform/neoforge/PacketChannelManagerImpl.java index 7861c227e..275fe57f6 100644 --- a/neoforge/src/main/java/com/faboslav/friendsandfoes/platform/neoforge/PacketChannelManagerImpl.java +++ b/neoforge/src/main/java/com/faboslav/friendsandfoes/platform/neoforge/PacketChannelManagerImpl.java @@ -31,9 +31,6 @@ public final class PacketChannelManagerImpl private static final Map> PACKETS = new HashMap<>(); private static boolean frozen = false; - public static void registerChannel(Identifier name) { - } - public static void registerPayloads(RegisterPayloadHandlerEvent event) { frozen = true;