Skip to content

Commit 4e65fa9

Browse files
committed
Forgot the return false
1 parent 64d3464 commit 4e65fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/btk5h/skriptmirror/skript/custom/ExprMatchedPattern.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public String toString(Event e, boolean debug) {
3939
return "matched pattern";
4040
}
4141

42-
@SuppressWarnings("unchecked")
4342
@Override
4443
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed,
4544
SkriptParser.ParseResult parseResult) {
@@ -50,6 +49,7 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye
5049
ConditionCheckEvent.class
5150
)) {
5251
Skript.error("The matched pattern may only be used in custom syntax.", ErrorQuality.SEMANTIC_ERROR);
52+
return false;
5353
}
5454
return true;
5555
}

0 commit comments

Comments
 (0)