Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken 2020-07-28 14:29:14 -04:00
commit be530abd4b
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ public class Scripts implements Disposable{
context.evaluateString(scope, "modName = \"" + currentMod.name + "\"\nscriptName = \"" + file + "\"", "initscript.js", 1, null);
}
context.evaluateString(scope,
wrap ? "(function(){\n" + script + "\n})();" : script,
wrap ? "(function(){'use strict';\n" + script + "\n})();" : script,
file, 0, null);
return true;
}catch(Throwable t){

View File

@ -88,7 +88,7 @@ public class Sorter extends Block{
boolean isSame(Building other){
//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){