mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-11-18 17:30:02 +00:00
Moved rollback events to listener with MONITOR priority
This commit is contained in:
parent
4813b8ae27
commit
95afb51321
1 changed files with 10 additions and 8 deletions
|
@ -98,11 +98,12 @@ public class TFM_BlockListener implements Listener
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!event.isCancelled())
|
||||
{
|
||||
TFM_RollbackManager.blockBreak(event);
|
||||
}
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onRollbackBlockBreak(BlockBreakEvent event)
|
||||
{
|
||||
TFM_RollbackManager.blockBreak(event);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGH)
|
||||
|
@ -244,11 +245,12 @@ public class TFM_BlockListener implements Listener
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!event.isCancelled())
|
||||
{
|
||||
TFM_RollbackManager.blockPlace(event);
|
||||
}
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onRollbackBlockPlace(BlockPlaceEvent event)
|
||||
{
|
||||
TFM_RollbackManager.blockPlace(event);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGH)
|
||||
|
|
Loading…
Reference in a new issue