mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
be530abd4b
@ -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){
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user