Collapse if
This commit is contained in:
@@ -287,10 +287,9 @@ public class CraterConveyor extends Block implements Autotiler{
|
|||||||
// awaken inputting conveyors
|
// awaken inputting conveyors
|
||||||
private void bump(Tile tile){
|
private void bump(Tile tile){
|
||||||
upstream(tile, t -> {
|
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();
|
t.entity.noSleep();
|
||||||
bump(t);
|
bump(t);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user