mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Fixed problem with LAN connections seeing the original ProxyPacket and consuming the first byte. Closes #2373
This commit is contained in:
1 parent
66895a520a
commit
cc593d4b54
1 file changed
+1
-1
+1
-1
@@ -69,7 +69,7 @@ public abstract class FMLIndexedMessageToMessageCodec<A> extends MessageToMessag
|
||||
protected final void decode(ChannelHandlerContext ctx, FMLProxyPacket msg, List<Object> out) throws Exception
|
||||
{
|
||||
testMessageValidity(msg);
|
||||
ByteBuf payload = msg.payload();
|
||||
ByteBuf payload = msg.payload().copy();
|
||||
byte discriminator = payload.readByte();
|
||||
Class<? extends A> clazz = discriminators.get(discriminator);
|
||||
if(clazz == null)
|
||||
|
||||
Reference in new issue
Block a user