mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-17 07:33:54 +00:00
Ignore cancelled interact events
This commit is contained in:
@ -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())
|
||||
|
@ -95,7 +95,7 @@ public class ItemFun extends FreedomService
|
||||
{
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onPlayerEntityInteract(PlayerInteractEntityEvent event)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user