Enchantable

Enchantable

142k Downloads

Invalid abort digging packets sent to server

octylFractal opened this issue ยท 0 comments

commented

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.