This commit is contained in:
Anuken
2023-01-07 12:06:57 -05:00
parent 4ec4e83823
commit 0c9f2b2687

View File

@@ -154,12 +154,14 @@ public class PayloadConveyor extends Block{
//trigger update forward //trigger update forward
next.updateTile(); next.updateTile();
//TODO add self to queue of next conveyor, then check if this conveyor was selected next frame - selection happens deterministically if(next != null){
if(next.acceptPayload(this, item)){ //TODO add self to queue of next conveyor, then check if this conveyor was selected next frame - selection happens deterministically
//move forward. if(next.acceptPayload(this, item)){
next.handlePayload(this, item); //move forward.
item = null; next.handlePayload(this, item);
moved(); item = null;
moved();
}
} }
}else if(!blocked){ }else if(!blocked){
//dump item forward //dump item forward