ProtocolLib

3M Downloads

TileEntityTypes Wrapper

chasertw123 opened this issue ยท 0 comments

commented

Make sure you're doing the following

  • [* ] You're using the latest build for your server version
  • [* ] This isn't an issue caused by another plugin
  • [* ] You've checked for duplicate issues
  • [ *] You didn't use /reload

Describe the question
How would I go about wrapping TileEntityTypes in PacketPlayOutTileEntityData. I believe before you could use an int and the protocol says to use an int but when I write to the int structure modifier I am getting an array out of bounds.

Caused by: com.comphenix.protocol.reflect.FieldAccessException: Field index 0 is out of bounds for length 0

API method(s) used
handle.getIntegers().write(0, value);

Expected behavior
A way to wrap the nms class and package it into the packet.

Code
N/A