Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -176,7 +176,7 @@ public class GameService{
|
||||
});
|
||||
|
||||
Events.on(UnitControlEvent.class, e -> {
|
||||
if(e.unit instanceof BlockUnitc && ((BlockUnitc)e.unit).tile().block == Blocks.router){
|
||||
if(e.unit instanceof BlockUnitc unit && unit.tile().block == Blocks.router){
|
||||
becomeRouter.complete();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -6,7 +6,8 @@ import mindustry.graphics.*;
|
||||
public enum BlockStatus{
|
||||
active(Color.valueOf("5ce677")),
|
||||
noOutput(Color.orange),
|
||||
noInput(Pal.remove);
|
||||
noInput(Pal.remove),
|
||||
logicDisable(Color.valueOf("8a73c6"));
|
||||
|
||||
public final Color color;
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ public class ConsumeModule extends BlockModule{
|
||||
}
|
||||
|
||||
public BlockStatus status(){
|
||||
if(entity.enabledControlTime > 0 && !entity.enabled){
|
||||
return BlockStatus.logicDisable;
|
||||
}
|
||||
|
||||
if(!entity.shouldConsume()){
|
||||
return BlockStatus.noOutput;
|
||||
}
|
||||
|
||||
@@ -62,5 +62,9 @@
|
||||
{
|
||||
"name": "Pandorum",
|
||||
"address": ["pandorum.su:5018", "pandorum.su:5019", "pandorum.su:5020"]
|
||||
},
|
||||
{
|
||||
"name": "MindustryBR",
|
||||
"address": ["mindustry.me:4451", "n2.mindustry.me:4446"]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user