mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-18 03:15:14 +00:00
- Implemented IMC scripts
- Improved build scripts somewhat - Added tools.jar dir to the configuration file
This commit is contained in:
1 parent
983de16ed9
commit
98d4932764
11 files changed
+180
-12
No files matched your search
@@ -77,7 +77,7 @@ public class ZenModule {
|
||||
clsScript.visitSource(script.getFileName(), null);
|
||||
EnvironmentClass environmentScript = new EnvironmentClass(clsScript, script.getEnvironment());
|
||||
|
||||
clsScript.visit(Opcodes.V1_6, Opcodes.ACC_PUBLIC, script.getClassName(), null, internal(Object.class), new String[] {internal(Runnable.class)});
|
||||
clsScript.visit(Opcodes.V1_6, Opcodes.ACC_PUBLIC, script.getClassName().replace('.', '/'), null, internal(Object.class), new String[] {internal(Runnable.class)});
|
||||
|
||||
for (Map.Entry<String, ParsedFunction> function : script.getFunctions().entrySet()) {
|
||||
ParsedFunction fn = function.getValue();
|
||||
@@ -126,7 +126,7 @@ public class ZenModule {
|
||||
scriptOutput.ret();
|
||||
scriptOutput.end();
|
||||
|
||||
mainRun.invokeStatic(script.getClassName(), "__script__", "()V");
|
||||
mainRun.invokeStatic(script.getClassName().replace('.', '/'), "__script__", "()V");
|
||||
}
|
||||
|
||||
clsScript.visitEnd();
|
||||
|
||||
-3
@@ -61,9 +61,6 @@ public class ParsedExpressionArray extends ParsedExpression {
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println("Predicted array base type " + (predictedBaseType == null ? "none" : predictedBaseType.getName()));
|
||||
System.out.println("Contents are: " + contents);
|
||||
|
||||
Expression[] cContents = new Expression[contents.size()];
|
||||
for (int i = 0; i < contents.size(); i++) {
|
||||
cContents[i] = contents.get(i).compile(environment, predictedBaseType).eval(environment);
|
||||
|
||||
Reference in new issue
Block a user