From 3238cf5fe85509ce54082c7a8a4998b352e3497a Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 30 Aug 2024 13:00:18 +0200 Subject: fix: events by default are not canceled --- src/main/java/ftbsc/geb/processor/GEBProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/ftbsc/geb') diff --git a/src/main/java/ftbsc/geb/processor/GEBProcessor.java b/src/main/java/ftbsc/geb/processor/GEBProcessor.java index 57655cd..6cd44a1 100644 --- a/src/main/java/ftbsc/geb/processor/GEBProcessor.java +++ b/src/main/java/ftbsc/geb/processor/GEBProcessor.java @@ -227,7 +227,7 @@ public class GEBProcessor extends AbstractProcessor { .addStatement("if((($T) $N).isCanceled()) return false", this.cancelableEventInterface, eventParam); } - callListenersBuilder.addStatement("return false"); + callListenersBuilder.addStatement("return true"); MethodSpec eventType = MethodSpec.methodBuilder("eventType") .addModifiers(Modifier.PUBLIC) -- cgit v1.2.3-56-ga3b1