diff --git a/fml/src/main/java/cpw/mods/fml/common/network/FMLIndexedMessageToMessageCodec.java b/fml/src/main/java/cpw/mods/fml/common/network/FMLIndexedMessageToMessageCodec.java index df5219714..1ab74f935 100644 --- a/fml/src/main/java/cpw/mods/fml/common/network/FMLIndexedMessageToMessageCodec.java +++ b/fml/src/main/java/cpw/mods/fml/common/network/FMLIndexedMessageToMessageCodec.java @@ -73,7 +73,7 @@ public abstract class FMLIndexedMessageToMessageCodec extends MessageToMessag throw new NullPointerException("Undefined message for discriminator " + discriminator + " in channel " + msg.channel()); } A newMsg = clazz.newInstance(); - ctx.attr(INBOUNDPACKETTRACKER).get().set(new WeakReference(msg)); + ctx.attr(INBOUNDPACKETTRACKER).get().set(new WeakReference(msg)); decodeInto(ctx, payload.slice(), newMsg); out.add(newMsg); } diff --git a/fml/src/main/java/cpw/mods/fml/common/network/handshake/NetworkDispatcher.java b/fml/src/main/java/cpw/mods/fml/common/network/handshake/NetworkDispatcher.java index d9697a9de..2352becfe 100644 --- a/fml/src/main/java/cpw/mods/fml/common/network/handshake/NetworkDispatcher.java +++ b/fml/src/main/java/cpw/mods/fml/common/network/handshake/NetworkDispatcher.java @@ -31,7 +31,6 @@ import net.minecraft.server.management.ServerConfigurationManager; import net.minecraft.util.ChatComponentText; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.FMLLog; -import cpw.mods.fml.common.network.FMLIndexedMessageToMessageCodec; import cpw.mods.fml.common.network.FMLNetworkEvent; import cpw.mods.fml.common.network.FMLNetworkException; import cpw.mods.fml.common.network.FMLOutboundHandler; @@ -463,7 +462,7 @@ public class NetworkDispatcher extends SimpleChannelInboundHandler imple super.exceptionCaught(ctx, cause); } - // if we add any attributes, we should force removal of them here so that + // if we add any attributes, we should force removal of them here so that //they do not hold references to the world and causes it to leak. private void cleanAttributes(ChannelHandlerContext ctx) {