Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -101,7 +101,7 @@ public class Scripts implements Disposable{
|
|||||||
context.evaluateString(scope, "modName = \"" + currentMod.name + "\"\nscriptName = \"" + file + "\"", "initscript.js", 1, null);
|
context.evaluateString(scope, "modName = \"" + currentMod.name + "\"\nscriptName = \"" + file + "\"", "initscript.js", 1, null);
|
||||||
}
|
}
|
||||||
context.evaluateString(scope,
|
context.evaluateString(scope,
|
||||||
wrap ? "(function(){\n" + script + "\n})();" : script,
|
wrap ? "(function(){'use strict';\n" + script + "\n})();" : script,
|
||||||
file, 0, null);
|
file, 0, null);
|
||||||
return true;
|
return true;
|
||||||
}catch(Throwable t){
|
}catch(Throwable t){
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public class Sorter extends Block{
|
|||||||
|
|
||||||
boolean isSame(Building other){
|
boolean isSame(Building other){
|
||||||
//uncomment code below to prevent sorter/gate chaining
|
//uncomment code below to prevent sorter/gate chaining
|
||||||
return other != null && (other.block() instanceof Sorter/* || other.block() instanceof OverflowGate */);
|
return other != null && (other.block() instanceof Sorter || other.block() instanceof OverflowGate);
|
||||||
}
|
}
|
||||||
|
|
||||||
Building getTileTarget(Item item, Building source, boolean flip){
|
Building getTileTarget(Item item, Building source, boolean flip){
|
||||||
|
|||||||
Reference in New Issue
Block a user