Ignore already cancelled block breaks to improve plugin compatibility (#4781)

This commit is contained in:
Pigaut
2025-10-26 20:54:10 +01:00
committed by GitHub
parent f5696b7671
commit df15203f2b

View File

@@ -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());