ProtocolLib

3M Downloads

com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.server.v1_16_R1.DimensionManager exists in class PacketPlayOutRespawn.

MrKorvic opened this issue ยท 1 comments

commented

Describe the bug
When attempting to play the respawn packet to a player, ProtocolLib fails to find the v1_16_R1 DimensionManager field.

To Reproduce
Steps to reproduce the behavior:

  1. Get ProtocolManager
  2. Create a PacketContainer with PacketType.Play.Server.RESPAWN
  3. Write data to the packet's dimensions using packet#getDimensions#write. This can even be done using the player's current WorldEnvironment ID and a fieldIndex of 0.
  4. Observe FieldAccessException in the console.

Expected behavior
Should set the packet's dimension to the one provided.

Screenshots
https://i.imgur.com/M4JcJdP.png
https://i.imgur.com/VaqqBlJ.png

Version Info
https://pastebin.com/8xJL2Ctd

commented

It got wrapped in a resource key. Looking into a good way to handle those.