If a block doesn't rotate, then don't check if the payload conveyor is trying to input into the output side

This commit is contained in:
Matthew Peng 2021-08-14 15:22:31 -07:00 committed by GitHub
parent 334b62b0a2
commit 094c6fd2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.rotation + 2)%4 == rotation);
blocked = (next != null && next.solid() && !next.block().outputsPayload) || (this.next != null && this.next.rotate && (this.next.rotation + 2) % 4 == rotation);
}
@Override