Forge uses the FORGE channel for packets.

This commit is contained in:
Lex Manos committed 2013-12-22 18:21:56 -08:00
1 parent 7e668ca9ac
commit 21e505c334
1 file changed
+1 -1
@@ -19,7 +19,7 @@ public class ForgeNetworkHandler
public static void registerChannel(ForgeModContainer forgeModContainer, Side side)
{
channelPair = NetworkRegistry.INSTANCE.newChannel(forgeModContainer, "FML", new FMLRuntimeCodec(), new HandshakeCompletionHandler());
channelPair = NetworkRegistry.INSTANCE.newChannel(forgeModContainer, "FORGE", new ForgeRuntimeCodec(), new HandshakeCompletionHandler());
EmbeddedChannel embeddedChannel = channelPair.get(Side.SERVER);
embeddedChannel.attr(FMLOutboundHandler.FML_MESSAGETARGET).set(OutboundTarget.NOWHERE);