ProtocolLib

3M Downloads

Misnamed packets USE_ITEM/BLOCK_PLACE

lorissikora opened this issue ยท 2 comments

commented

Follow this template except for feature requests. Use pastebin when providing /protocol dump and any relevant errors.

Make sure you've done 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

Debug paste link:

Description and relevant errors:

The names or IDs of the two packets USE_ITEM and BLOCK_PLACE seem to be swapped (see PacketType.java). When opening a Work bench for example a listener will detect USE_ITEM containing the payload of a BLOCK_PLACE packet. This is further supported by the Protocol Specification where it's visible, that the IDs don't seem to match up with the ones provided by ProtocolLib.

commented

Yeah this has been a problem for a while, but it just kind of is what it is. Just keep that in mind when writing listeners for it.

commented

Then at least it would be good if it would be noted somewhere. Had I known this prior I could have saved myself a lot of head scratching and hours of debugging. But thanks anyway!