Merge pull request #622 from immibis/master
Fix world-breaking infinite loop in TransactorSimple
This commit is contained in:
commit
374aa6ebc1
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ public class TransactorSimple extends Transactor {
|
|||
|
||||
int injected = 0;
|
||||
|
||||
int slot = 0;
|
||||
while ((slot = getPartialSlot(stack, orientation, slot)) >= 0 && injected < stack.stackSize) {
|
||||
int slot = -1;
|
||||
while ((slot = getPartialSlot(stack, orientation, slot + 1)) >= 0 && injected < stack.stackSize) {
|
||||
injected += addToSlot(slot, stack, injected, doAdd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue