Fix errors caused by multi-target messages sent from LAN host (#4536)

This commit is contained in:
Ben Staddon 2017-11-19 19:47:51 +00:00 committed by LexManos
parent a2fb242814
commit aaf47afff2

View file

@ -304,8 +304,10 @@ public class FMLOutboundHandler extends ChannelOutboundHandlerAdapter {
} }
for (NetworkDispatcher targetDispatcher : dispatchers) for (NetworkDispatcher targetDispatcher : dispatchers)
{ {
targetDispatcher.sendProxy((FMLProxyPacket) msg); pkt.payload().retain();
targetDispatcher.sendProxy(pkt);
} }
pkt.payload().release();
} }
} }