mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2026-05-02 07:01:24 +00:00
make sure we check for canceled events
This commit is contained in:
@@ -38,7 +38,7 @@ public class ShootBow implements Listener {
|
||||
this.toolStats = toolStats;
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onShoot(EntityShootBowEvent event) {
|
||||
Entity shooter = event.getEntity();
|
||||
// only listen for players
|
||||
|
||||
Reference in New Issue
Block a user