Skip to content

Commit

Permalink
Fix execute method
Browse files Browse the repository at this point in the history
  • Loading branch information
OfficialDonut authored Oct 3, 2018
1 parent afb12c5 commit 686454c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/java/ch/njol/skript/effects/EffDoIf.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 686454c

Please sign in to comment.