mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Clean up some missing generic info
PS: NOPE: still not modding.
This commit is contained in:
1 parent
b286cb6a57
commit
f866aeaacb
2 files changed
+2
-3
No files matched your search
@@ -73,7 +73,7 @@ public abstract class FMLIndexedMessageToMessageCodec<A> 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<FMLProxyPacket>(msg));
|
||||
decodeInto(ctx, payload.slice(), newMsg);
|
||||
out.add(newMsg);
|
||||
}
|
||||
|
||||
@@ -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<Packet> 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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user