ProtocolLib

3M Downloads

Cannot get the blockstate of a banner on digging

teeteeteeteetee opened this issue ยท 2 comments

commented
  • This issue is not solved in a development build

Describe the bug
Protocollib returns error if the player digs banner if we are trying to get the state of it, however we are still able to get the type of it. In the other hand I'm able to get the block state with the "BlockDamageEvent" event which also requires to dig anything, but doesn't end up erroring out

To Reproduce
Steps to reproduce the behavior:

  1. try to get the block state of a block that is being digged
  2. dig banner block

Expected behavior
return banners item state

Screenshots

udc2d.mp4
ohlt2.mp4

Version Info
https://pastebin.com/e0Ttpbk1

commented

Incoming packets are not processed on the main server thread, therefore acessing blocks is unsafe and might result in errors like those you see.

commented

that was the issue, thank you!!