diff --git a/src/main/java/team/unnamed/molang/runtime/ExpressionEvaluatorImpl.java b/src/main/java/team/unnamed/molang/runtime/ExpressionEvaluatorImpl.java index f2528f5..1f7c814 100644 --- a/src/main/java/team/unnamed/molang/runtime/ExpressionEvaluatorImpl.java +++ b/src/main/java/team/unnamed/molang/runtime/ExpressionEvaluatorImpl.java @@ -88,6 +88,8 @@ public final class ExpressionEvaluatorImpl implements ExpressionEvaluator { final Object predicateVal = b.visit(evaluator); if (predicateVal instanceof Function) { return ((Function) predicateVal).evaluate(evaluator); + } else { + return predicateVal; } } return 0;