Closes Anuken/Mindustry-Suggestions/issues/5737

This commit is contained in:
Anuken
2025-07-21 03:09:41 -04:00
parent 48554c3560
commit b0fe88b119
3 changed files with 12 additions and 5 deletions

View File

@@ -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");

View File

@@ -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;
}
}

View File

@@ -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);