ChunkPacketProcessor.fromMapPacket() throws "Field index out of bounds"
Hi,
I've been trying to replace certain blocks with other blocks (e.g. disguise TNT as Wool).
When calling ChunkPacketProcessor.fromMapPacket() it throws "Field index out of bounds" exception.
I've looked at the source and I see that it tries to access a field that isn't in PacketPlayOutMapChunk:
processor.extraMask = ints.read(3); // packet.d;
PacketPlayOutMapChunk contains only 3 int fields.
I tried to figure out which server version PacketWrapper is supposed to be used with and can't find that information anywhere.
Also, i checked PacketPlayOutMapChunk in all versions from 1.12 back to 1.8 and wasn't able to spot more that 3 int fields in any of them.
I'm trying it on 1.12
After having spent some time looking at the protocol ( http://wiki.vg/Chunk_Format ) and PacketWrapper I have couple of questions:
- Which version(s) does PacketWrapper support?
- How hard would be to fix
fromMapPacket()? If not hard then how soon it can be fixed? - Alternatively, would it it possible to describe how to fix it? I tried to figure out the purpose of
extraMaskinChunkPacketProcessorand fail to find any reference to it in the protocol
I don't think ChunkPacketProcessor has been updated since 1.7