Finish 〃

This commit is contained in:
Patrick 'Quezler' Mounier
2020-02-07 10:32:43 +01:00
parent 3d8e83850e
commit 94dc220924

View File

@@ -284,17 +284,22 @@ public class CraterConveyor extends Block implements Autotiler{
if(entity.blendbit1 == 0 || entity.blendbit1 == 2 || entity.blendbit1 == 3) cons.get(tile.back());
// fixme: add x/y checks for bits 1 & 2
if(entity.blendbit1 == 2 && entity.blendscly == +1) cons.get(tile.right());
if(entity.blendbit1 == 2 && entity.blendscly == -1) cons.get(tile.left());
if(entity.blendbit1 == 4) cons.get(tile.left());
if(entity.blendbit1 == 4) cons.get(tile.right());
if(entity.blendbit1 == 1 && entity.blendscly == -1) cons.get(tile.right());
if(entity.blendbit1 == 1 && entity.blendscly == +1) cons.get(tile.left());
if(entity.blendbit1 == 4 || entity.blendbit1 == 3){
cons.get(tile.right());
cons.get(tile.left());
}
}
// awaken inputting conveyors
private void bump(Tile tile){
upstream(tile, t -> {
Effects.effect(Fx.smeltsmoke, t.drawx(), t.drawy());
if(t.entity.isSleeping() && t.entity.items.total() > 0){
if(t != null && t.entity != null && t.entity.isSleeping() && t.entity.items.total() > 0){
t.entity.noSleep();
bump(t);
}