From dfb1195242d6ecc8d210bd0426e948138df7a048 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 5 Sep 2018 05:12:02 +1000 Subject: [PATCH] Break on event cancel --- .../java/com/boydti/fawe/bukkit/regions/FreeBuildRegion.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/FreeBuildRegion.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/FreeBuildRegion.java index 20fbab79f..6ed5a6d38 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/FreeBuildRegion.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/FreeBuildRegion.java @@ -92,6 +92,7 @@ public class FreeBuildRegion extends BukkitMaskManager { try { for (RegisteredListener listener : listeners) { listener.callEvent(event); + if (event.isCancelled()) break; } } catch (EventException e) { throw new RuntimeException(e);