juliarn / npc-lib

Asynchronous, high-performance Minecraft NPC library for 1.8-1.21 servers.
MIT License
296 stars 50 forks source link

Fix that the left clicks (in the air) are not imitated #80

Closed 0utplay closed 1 year ago

0utplay commented 1 year ago

Currently the listener for the PlayerInteractEvent has ignoreCancelled set to true. The problem with this is that the PlayerInteractEvent is cancelled if the click was into the air. Therefore this PR sets ignoreCancelled to false inorder to dispatch the clicks correctly.