From 686454c2795a4cde5f3a6a92b2bc3146d5e2f199 Mon Sep 17 00:00:00 2001 From: Donut Date: Tue, 2 Oct 2018 23:12:16 -0400 Subject: [PATCH] Fix execute method --- src/main/java/ch/njol/skript/effects/EffDoIf.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/ch/njol/skript/effects/EffDoIf.java b/src/main/java/ch/njol/skript/effects/EffDoIf.java index 1ade394ad8c..22752da1844 100644 --- a/src/main/java/ch/njol/skript/effects/EffDoIf.java +++ b/src/main/java/ch/njol/skript/effects/EffDoIf.java @@ -33,6 +33,7 @@ import ch.njol.skript.lang.SkriptParser; import ch.njol.skript.lang.TriggerItem; import ch.njol.util.Kleenean; +import org.eclipse.jdt.annotation.Nullable; @Name("Do If") @Description("Execute an effect if a condition is true.") @@ -66,11 +67,9 @@ public boolean init(Expression[] exprs, int matchedPattern, Kleenean isDelaye } @Override - protected void execute(Event e) { - walk(e); - } - - @SuppressWarnings("null") + protected void execute(Event e) {} + + @Nullable @Override public TriggerItem walk(Event e) { if (condition.check(e)) {