Ignore cancelled interact events

This commit is contained in:
Allink 2023-07-25 17:42:32 +01:00
parent 476c87ceb0
commit 11c24cff68
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public class InteractBlocker extends FreedomService
{
}
@EventHandler(priority = EventPriority.HIGH)
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onPlayerInteract(PlayerInteractEvent event)
{
switch (event.getAction())

View File

@ -95,7 +95,7 @@ public class ItemFun extends FreedomService
{
}
@EventHandler
@EventHandler(ignoreCancelled = true)
public void onPlayerEntityInteract(PlayerInteractEntityEvent event)
{