This commit is contained in:
Anuken 2026-02-19 22:01:25 -05:00
parent a7f2bb3b79
commit 26bae55830

View file

@ -118,7 +118,10 @@ public class PayloadConveyor extends Block{
}else{
next = null;
}
checkBlocked();
}
void checkBlocked(){
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 || next.block().acceptsPayload)) || (this.next != null && this.next.payloadCheck(rotation));
@ -156,6 +159,7 @@ public class PayloadConveyor extends Block{
boolean had = item != null;
if(valid && stepAccepted != curStep && item != null){
checkBlocked();
if(next != null){
//trigger update forward
next.updateTile();