mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 20:42:16 +00:00
- Basic types can now be converted to the "any" type
- Changed OreDict 'contains' to respond to the 'in' operator
This commit is contained in:
1 parent
52f92dcfd4
commit
1b72abb2b4
59 files changed
+3595
-976
No files matched your search
@@ -28,7 +28,7 @@ public class StatementIf extends Statement {
|
||||
|
||||
Expression cCondition = condition.compile(environment).eval(environment);
|
||||
ZenType expressionType = cCondition.getType();
|
||||
if (expressionType.canCastImplicit(ZenTypeBool.INSTANCE, environment)) {
|
||||
if (expressionType.canCastImplicit(ZenType.BOOL, environment)) {
|
||||
Label labelEnd = new Label();
|
||||
Label labelElse = onElse == null ? labelEnd : new Label();
|
||||
|
||||
|
||||
Reference in new issue
Block a user