mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-10-27 07:33:43 +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) {
|
public void blockDestroy(BlockBreakEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
Location location = BukkitUtil.adapt(event.getBlock().getLocation());
|
Location location = BukkitUtil.adapt(event.getBlock().getLocation());
|
||||||
|
|||||||
Reference in New Issue
Block a user