(01-21-2016, 08:51 PM)NiLSPACE Wrote: Add this check in front of the hook:
if (BlockFace == BLOCK_FACE_NONE) then return false end
Where exactly?
(01-21-2016, 08:51 PM)NiLSPACE Wrote: The right-click is called twice because Minecraft sends two packets.
If the right-click function was called twice, it would increase the number by 2 on one click. Instead it returns an entirely new number.
Here is a screenshot with all the scenarios:
http://i.imgur.com/9kVqPYU.png
The numbers returned in chat are simply the meta variable...