Merge pull request #622 from immibis/master

Fix world-breaking infinite loop in TransactorSimple
This commit is contained in:
Krapht 2013-02-04 23:21:59 -08:00
commit 374aa6ebc1

View file

@ -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);
}