mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-17 10:55:04 +00:00
Tons of changes:
- Added interface to game, client and server - Added transformations - Made ingredient conditions more practical to use, no longer requires imports - Started implementation of event handling - Moved commands and logic to the common API code - Added common interface to MineTweaker recipes - Added string methods - Moved the logger from static value to static getter - Fixed crashes on dedicated servers - Fixed bracket resolution for <id:meta> values in 1.6.4 - Fixed scripts not being sent to multiplayer clients in 1.6.4
This commit is contained in:
1 parent
7f6235f30d
commit
115593efa5
131 files changed
+3215
-1930
No files matched your search
+16
-2
@@ -42,10 +42,24 @@ public abstract class ParsedExpression {
|
||||
}
|
||||
|
||||
private static ParsedExpression readAssignExpression(ZenTokener parser, IEnvironmentGlobal environment) {
|
||||
ZenPosition position = parser.peek().getPosition();
|
||||
Token token = parser.peek();
|
||||
if (token == null) {
|
||||
ZenPosition position = new ZenPosition(parser.getFile(), parser.getLine(), parser.getLineOffset());
|
||||
environment.error(position, "unexpected end of file; expression expected");
|
||||
return new ParsedExpressionInvalid(position);
|
||||
}
|
||||
|
||||
ZenPosition position = token.getPosition();
|
||||
|
||||
ParsedExpression left = readConditionalExpression(position, parser, environment);
|
||||
switch (parser.peek() == null ? -1 : parser.peek().getType()) {
|
||||
|
||||
if (parser.peek() == null) {
|
||||
ZenPosition position2 = new ZenPosition(parser.getFile(), parser.getLine(), parser.getLineOffset());
|
||||
environment.error(position2, "unexpected end of file - ; expected");
|
||||
return new ParsedExpressionInvalid(position2);
|
||||
}
|
||||
|
||||
switch (parser.peek().getType()) {
|
||||
case T_ASSIGN:
|
||||
parser.next();
|
||||
return new ParsedExpressionAssign(position, left, readAssignExpression(parser, environment));
|
||||
|
||||
Reference in new issue
Block a user