Enchantable icon indicating copy to clipboard operation
Enchantable copied to clipboard

Invalid abort digging packets sent to server

Open octylFractal opened this issue 4 years ago • 0 comments

This line is sending an invalid abort dig packet to the server, because the player's current targeted block (playerController.currentBlock) is -1, -1, -1.

This causes issues with WorldEdit because it expects only legitimate events, and it will incorrectly think someone is re-clicking their axe at -1, -1, -1.

The solution to this is probably to avoid sending this if the player doesn't currently have a targeted block, since there's no reason for it to be sent in that case, in my understanding.

octylFractal avatar May 01 '20 21:05 octylFractal