From 67d9dac16db9782751b488fafdbc23e26c63f849 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 2 Feb 2014 12:19:37 -0500 Subject: [PATCH] Add a discriminator for fluididspacket. remove extraneous channel handler. --- .../net/minecraftforge/common/network/ForgeNetworkHandler.java | 3 +-- .../net/minecraftforge/common/network/ForgeRuntimeCodec.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraftforge/common/network/ForgeNetworkHandler.java b/src/main/java/net/minecraftforge/common/network/ForgeNetworkHandler.java index c3162beb4..493532f8a 100644 --- a/src/main/java/net/minecraftforge/common/network/ForgeNetworkHandler.java +++ b/src/main/java/net/minecraftforge/common/network/ForgeNetworkHandler.java @@ -6,7 +6,6 @@ import cpw.mods.fml.common.network.FMLEmbeddedChannel; import cpw.mods.fml.common.network.FMLOutboundHandler; import cpw.mods.fml.common.network.FMLOutboundHandler.OutboundTarget; import cpw.mods.fml.common.network.NetworkRegistry; -import cpw.mods.fml.common.network.internal.HandshakeCompletionHandler; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -16,7 +15,7 @@ public class ForgeNetworkHandler public static void registerChannel(ForgeModContainer forgeModContainer, Side side) { - channelPair = NetworkRegistry.INSTANCE.newChannel(forgeModContainer, "FORGE", new ForgeRuntimeCodec(), new HandshakeCompletionHandler()); + channelPair = NetworkRegistry.INSTANCE.newChannel(forgeModContainer, "FORGE", new ForgeRuntimeCodec()); if (side == Side.CLIENT) { addClientHandlers(); diff --git a/src/main/java/net/minecraftforge/common/network/ForgeRuntimeCodec.java b/src/main/java/net/minecraftforge/common/network/ForgeRuntimeCodec.java index e46000da9..3af75344e 100644 --- a/src/main/java/net/minecraftforge/common/network/ForgeRuntimeCodec.java +++ b/src/main/java/net/minecraftforge/common/network/ForgeRuntimeCodec.java @@ -8,6 +8,7 @@ public class ForgeRuntimeCodec extends FMLIndexedMessageToMessageCodec