mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 20:42:16 +00:00
Revert "Several bug fixes and enhancements on ZenScripts"
This commit is contained in:
1 parent
ad9c98a838
commit
89f22013f1
8 files changed
+8
-24
No files matched your search
@@ -26,10 +26,7 @@ public abstract class Statement {
|
||||
}
|
||||
case T_RETURN: {
|
||||
parser.next();
|
||||
ParsedExpression expression = null;
|
||||
if (parser.peek() != null && !parser.isNext(T_SEMICOLON)) {
|
||||
expression = ParsedExpression.read(parser, environment);
|
||||
}
|
||||
ParsedExpression expression = ParsedExpression.read(parser, environment);
|
||||
parser.required(T_SEMICOLON, "; expected");
|
||||
return new StatementReturn(next.getPosition(), returnType, expression);
|
||||
}
|
||||
|
||||
@@ -57,6 +57,5 @@ public class StatementForeach extends Statement {
|
||||
body.compile(local);
|
||||
iterator.compilePostIterate(localVariables, exit, repeat);
|
||||
methodOutput.label(exit);
|
||||
iterator.compileEnd();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user