Removed @solid variable
This commit is contained in:
@@ -7,7 +7,6 @@ import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.game.*;
|
||||
import mindustry.type.*;
|
||||
@@ -116,9 +115,6 @@ public class GlobalVars{
|
||||
put("@color" + Strings.capitalize(entry.key), entry.value.toDoubleBits());
|
||||
}
|
||||
|
||||
//used as a special value for any environmental solid block
|
||||
put("@solid", Blocks.stoneWall);
|
||||
|
||||
for(UnitType type : Vars.content.units()){
|
||||
put("@" + type.name, type);
|
||||
}
|
||||
|
||||
@@ -428,9 +428,7 @@ public class LExecutor{
|
||||
p4.setobj(null);
|
||||
p5.setobj(null);
|
||||
}else{
|
||||
//any environmental solid block is returned as StoneWall, aka "@solid"
|
||||
Block block = !tile.synthetic() ? (tile.solid() ? Blocks.stoneWall : Blocks.air) : tile.block();
|
||||
p3.setobj(block);
|
||||
p3.setobj(tile.block());
|
||||
p4.setobj(tile.build != null ? tile.build : null);
|
||||
//Allows reading of ore tiles if they are present (overlay is not air) otherwise returns the floor
|
||||
p5.setobj(tile.overlay() == Blocks.air ? tile.floor() : tile.overlay());
|
||||
|
||||
Reference in New Issue
Block a user