Closes Anuken/Mindustry-Suggestions/issues/5737
This commit is contained in:
@@ -167,7 +167,7 @@ public class Renderer implements ApplicationListener{
|
||||
laserOpacity = settings.getInt("lasersopacity") / 100f;
|
||||
bridgeOpacity = settings.getInt("bridgeopacity") / 100f;
|
||||
animateShields = settings.getBool("animatedshields");
|
||||
animateWater = settings.getBool("animatewater");
|
||||
animateWater = settings.getBool("animatedwater");
|
||||
drawStatus = settings.getBool("blockstatus");
|
||||
enableEffects = settings.getBool("effects");
|
||||
drawDisplays = !settings.getBool("hidedisplays");
|
||||
|
||||
@@ -163,8 +163,16 @@ public class Team implements Comparable<Team>, Senseable{
|
||||
|
||||
@Override
|
||||
public double sense(LAccess sensor){
|
||||
if(sensor == LAccess.id) return id;
|
||||
if(sensor == LAccess.color) return color.toDoubleBits();
|
||||
return Double.NaN;
|
||||
return switch(sensor){
|
||||
case id -> id;
|
||||
case color -> color.toDoubleBits();
|
||||
default -> Double.NaN;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object senseObject(LAccess sensor){
|
||||
if(sensor == LAccess.name) return name;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1392,7 +1392,6 @@ public class LExecutor{
|
||||
|
||||
Tile tile = world.tile(x.numi(), y.numi());
|
||||
if(tile != null && block.obj() instanceof Block b){
|
||||
//TODO this can be quite laggy...
|
||||
switch(layer){
|
||||
case ore -> {
|
||||
if((b instanceof OverlayFloor || b == Blocks.air) && tile.overlay() != b) tile.setOverlayNet(b);
|
||||
|
||||
Reference in New Issue
Block a user