LogicDisable (#6191)
* LogicDisable * I have read CONTRIBUTING.md I forgot one space Co-authored-by: Lele567 <48808663+Lele567@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user