Break on event cancel

This commit is contained in:
Jesse Boyd 2018-09-05 05:12:02 +10:00
parent 685a3c015f
commit dfb1195242
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

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