If it accepts payloads, then it shouldn't be blocked. (#5767)

This commit is contained in:
Matthew Peng
2021-08-14 17:35:29 -07:00
committed by GitHub
parent 24d3afca18
commit 79939db170

View File

@ -113,7 +113,7 @@ public class PayloadConveyor extends Block{
int ntrns = 1 + size/2;
Tile next = tile.nearby(Geometry.d4(rotation).x * ntrns, Geometry.d4(rotation).y * ntrns);
blocked = (next != null && next.solid() && !next.block().outputsPayload) || (this.next != null && this.next.block.rotate && (this.next.rotation + 2) % 4 == rotation);
blocked = (next != null && next.solid() && !(next.block().outputsPayload || next.block().acceptsPayload)) || (this.next != null && this.next.block.rotate && (this.next.rotation + 2) % 4 == rotation);
}
@Override