mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Ignore cancelled interact events
This commit is contained in:
parent
476c87ceb0
commit
11c24cff68
@ -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)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user