Fixed #11694
This commit is contained in:
@@ -118,7 +118,10 @@ public class PayloadConveyor extends Block{
|
|||||||
}else{
|
}else{
|
||||||
next = null;
|
next = null;
|
||||||
}
|
}
|
||||||
|
checkBlocked();
|
||||||
|
}
|
||||||
|
|
||||||
|
void checkBlocked(){
|
||||||
int ntrns = 1 + size/2;
|
int ntrns = 1 + size/2;
|
||||||
Tile next = tile.nearby(Geometry.d4(rotation).x * ntrns, Geometry.d4(rotation).y * ntrns);
|
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));
|
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;
|
boolean had = item != null;
|
||||||
|
|
||||||
if(valid && stepAccepted != curStep && item != null){
|
if(valid && stepAccepted != curStep && item != null){
|
||||||
|
checkBlocked();
|
||||||
if(next != null){
|
if(next != null){
|
||||||
//trigger update forward
|
//trigger update forward
|
||||||
next.updateTile();
|
next.updateTile();
|
||||||
|
|||||||
Reference in New Issue
Block a user