Skip to content

Commit 43f9faa

Browse files
committed
ExprContextValue - if the state doesn't match keep going, we can try the next
1 parent a9deee9 commit 43f9faa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/io/github/syst3ms/skriptparser/expressions/ExprContextValue.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public boolean init(Expression<?>[] expressions, int matchedPattern, ParseContex
8383
}
8484
return false;
8585
} else if (state != info.getState()) {
86-
logger.error("The time state of this context value (" + state.toString().toLowerCase() + ") is incorrect", ErrorType.SEMANTIC_ERROR);
87-
return false;
86+
// TODO might find a way to re-implement this later
87+
//logger.error("The time state of this context value (" + state.toString().toLowerCase() + ") is incorrect", ErrorType.SEMANTIC_ERROR);
88+
continue;
8889
} else if (parserState.isRestrictingExpressions() && parserState.forbidsSyntax(ExprContextValue.class)) {
8990
logger.setContext(ErrorContext.RESTRICTED_SYNTAXES);
9091
logger.error("The enclosing section does not allow the use of context expressions.", ErrorType.SEMANTIC_ERROR);

0 commit comments

Comments
 (0)