mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-12 19:09:34 +07:00
Collapse if
This commit is contained in:
parent
c1f025db52
commit
73414d7c2a
@ -287,10 +287,9 @@ public class CraterConveyor extends Block implements Autotiler{
|
||||
// awaken inputting conveyors
|
||||
private void bump(Tile tile){
|
||||
upstream(tile, t -> {
|
||||
if(t != null && t.entity != null && t.entity.isSleeping() && t.entity.items.total() > 0){
|
||||
if(t == null || t.entity == null || !t.entity.isSleeping() || t.entity.items.total() <= 0) return;
|
||||
t.entity.noSleep();
|
||||
bump(t);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user