fix: events by default are not canceled

This commit is contained in:
zaaarf 2024-08-30 13:00:18 +02:00
parent 8027656386
commit 3238cf5fe8
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

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