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;
|
laserOpacity = settings.getInt("lasersopacity") / 100f;
|
||||||
bridgeOpacity = settings.getInt("bridgeopacity") / 100f;
|
bridgeOpacity = settings.getInt("bridgeopacity") / 100f;
|
||||||
animateShields = settings.getBool("animatedshields");
|
animateShields = settings.getBool("animatedshields");
|
||||||
animateWater = settings.getBool("animatewater");
|
animateWater = settings.getBool("animatedwater");
|
||||||
drawStatus = settings.getBool("blockstatus");
|
drawStatus = settings.getBool("blockstatus");
|
||||||
enableEffects = settings.getBool("effects");
|
enableEffects = settings.getBool("effects");
|
||||||
drawDisplays = !settings.getBool("hidedisplays");
|
drawDisplays = !settings.getBool("hidedisplays");
|
||||||
|
|||||||
@@ -163,8 +163,16 @@ public class Team implements Comparable<Team>, Senseable{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double sense(LAccess sensor){
|
public double sense(LAccess sensor){
|
||||||
if(sensor == LAccess.id) return id;
|
return switch(sensor){
|
||||||
if(sensor == LAccess.color) return color.toDoubleBits();
|
case id -> id;
|
||||||
return Double.NaN;
|
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());
|
Tile tile = world.tile(x.numi(), y.numi());
|
||||||
if(tile != null && block.obj() instanceof Block b){
|
if(tile != null && block.obj() instanceof Block b){
|
||||||
//TODO this can be quite laggy...
|
|
||||||
switch(layer){
|
switch(layer){
|
||||||
case ore -> {
|
case ore -> {
|
||||||
if((b instanceof OverlayFloor || b == Blocks.air) && tile.overlay() != b) tile.setOverlayNet(b);
|
if((b instanceof OverlayFloor || b == Blocks.air) && tile.overlay() != b) tile.setOverlayNet(b);
|
||||||
|
|||||||
Reference in New Issue
Block a user