mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 05:51:47 -08:00
Possible stack conveyor freeze fix (3)
This commit is contained in:
parent
dac74f3022
commit
afc8d5e396
1 changed files with 3 additions and 2 deletions
|
|
@ -280,14 +280,15 @@ public class StackConveyor extends Block implements Autotiler{
|
|||
if(!enabled) return;
|
||||
|
||||
if(state == stateUnload){ //unload
|
||||
while(lastItem != null && items.has(lastItem) && !outputRouter ? moveForward(lastItem) : dump(lastItem)){
|
||||
while(lastItem != null && !outputRouter ? moveForward(lastItem) : dump(lastItem)){
|
||||
if(!outputRouter){
|
||||
items.remove(lastItem, 1);
|
||||
}
|
||||
|
||||
if(items.empty()){
|
||||
if(!items.has(lastItem)){
|
||||
poofOut();
|
||||
lastItem = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}else{ //transfer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue