The Rock Mod

The Rock Mod

274 Downloads

onStoneSmash() being called twice

SecretJuice opened this issue ยท 1 comments

commented

onStoneSmash() is executing when the Left Mouse button goes down and when it comes back up. It should only execute when the mouse button goes down.

commented

This was fixed by changing the way of doing things. The EventListener now detects things on the client and sends a packet to the server to actually be given the item.

onStoneSmash() now sends the packet when holding left control and placing cobblestone on obsidian.