mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 07:50:54 -07:00
Fixed #11694
This commit is contained in:
parent
a7f2bb3b79
commit
26bae55830
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue