Why block.right_click runs twice when clicked in game!
SamukaDEV opened this issue ยท 2 comments
in the server_scripts folder i have registred this event only one time, and in the game is fired twice when the player click in blocks!
this script is in the right place?
i have forgot something?
i dont know why this is happening, and in the documentation i found nothing about this event!
Extra info:
Minecraft Version: 1.16.5
Using Forge Version: 36.2.8
KubeJS Version: 1605.3.18-build.152
it gets called once for the main hand and once for the off hand.
You can check the hand.
if(event.hand == MAIN_HAND) { // OFF_HAND
}