mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-10-26 23:23:45 +01:00
Ignore already cancelled block breaks to improve plugin compatibility (#4781)
This commit is contained in:
@@ -219,7 +219,7 @@ public class BlockEventListener implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
|
||||
public void blockDestroy(BlockBreakEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
Location location = BukkitUtil.adapt(event.getBlock().getLocation());
|
||||
|
||||
Reference in New Issue
Block a user