ProtocolLib

3M Downloads

PacketPlayOutMapChunk is no more exists

oNLog1c opened this issue ยท 3 comments

commented

Describe the bug
PacketType.Play.Server.MAP_CHUNK is not working anymore. In 1.18 an NMS class PacketPlayOutMapChunk was removed (or renamed?), and after that, this packet cannot be manipulated. I tried to spoof biome IDs by faking a package, but got FieldAccessException. This suggests that the field I'm looking for no longer exists. However, on 1.17.1, the same code works without any problems.

To Reproduce
Just use the code below. After trying to connect to the server, exceptions will be thrown.

Expected behavior
If everything worked as it should, then the biomes would faking, and there would be no errors in the console.

Screenshots
image
image

Version Info
4.8.0-SNAPSHOT-b538, paper 1.18.1

ps. Sorry if this is my mistake, I just started learning ProtocolLib yesterday.

commented

The packet still exists, it just doesn't contain an int[] anymore. I suggest looking into the server code to find out how to read the packet correctly. This is not a protocollib issue. (A bit of help might be #1469 )

commented

Thanks for the advice, but it didn't work for me. All night I tried to figure out which field contains information about biomes, but I did not understand..

commented

The data is in the first byte array in the first internal structure in the packet. See here for information how the data is structered in there.