From 56b2cc2745e2cda5cdbfc898803a1624a103ab81 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Wed, 29 Jan 2020 09:05:00 +0100 Subject: [PATCH] Fix unloading on a corner --- .../src/mindustry/world/blocks/distribution/CraterConveyor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java index ce077fcbfc..13d954148b 100644 --- a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java @@ -226,7 +226,7 @@ public class CraterConveyor extends Block implements Autotiler{ // when near the center of the target tile... if(entity.reload < 0.25f){ - if(!(destination.block() instanceof CraterConveyor) && (entity.from != tile.pos() || !((entity.snekbit & head) == head))){ // ...and if its not a crater conveyor, start unloading (everything) + if((entity.snekbit & tail) == tail && (entity.from != tile.pos() || !((entity.snekbit & head) == head))){ // ...and if its not a crater conveyor, start unloading (everything) while(entity.items.total() > 0 && entity.items.first() != null && offloadDir(tile, entity.items.first())) entity.items.remove(entity.items.first(), 1); if(entity.items.total() == 0) Effects.effect(Fx.plasticburn, tile.drawx(), tile.drawy()); if(entity.items.total() == 0) bump(tile);