You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.server.v1_16_R2.ItemStack exists in class PacketPlayOutEntityEquipment.
#74
Open
alexandrage opened this issue
Aug 17, 2020
· 3 comments
com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.server.v1_16_R2.ItemStack exists in class PacketPlayOutEntityEquipment.
at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:363) ~[?:?]
at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:343) ~[?:?]
at com.comphenix.packetwrapper.WrapperPlayServerEntityEquipment.setItem(WrapperPlayServerEntityEquipment.java:109) ~[?:?]
The text was updated successfully, but these errors were encountered:
Not sure if ProtocolLib supports Pair at all, I'll check that
Edit: okay, we need to wait that dmulloy2/ProtocolLib@f19bfc6 is deployed as a Snapshot.
The other question is, whether the regeneration script should be ran or whether this code change should be done manually?
The other question is, whether the regeneration script should be ran or whether this code change should be done manually?
As I am aware, the work on new format support is done manually.
This exact fix is partly available here: #78 (although the PR seems to be incorrect as write operations seem to be missing).
Also it should be available as part of this changeset: #60 (lazily, but I am working on it as I now have some sponsoring for it).
As a temporary workaround you can either do these operations directly by modifying the underlying PacketContainer manually or either add the Draft-PR branch as a git submodule and use it for building.
com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.server.v1_16_R2.ItemStack exists in class PacketPlayOutEntityEquipment.
at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:363) ~[?:?]
at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:343) ~[?:?]
at com.comphenix.packetwrapper.WrapperPlayServerEntityEquipment.setItem(WrapperPlayServerEntityEquipment.java:109) ~[?:?]
The text was updated successfully, but these errors were encountered: