Replaced dumb stack size subtractor from CorporeaHelper in favor of a decrStackSize() call. Ought to close #729. Again.

This commit is contained in:
Lizbeth Rika committed 2015-04-11 23:41:55 +01:00
1 parent 51c4abf858
commit 5f305dc9e7
1 file changed
+1 -3
@@ -186,9 +186,7 @@ public final class CorporeaHelper {
lastRequestMatches += stackAt.stackSize;
lastRequestExtractions += rem;
if(doit && rem > 0) {
stackAt.stackSize -= rem;
if(stackAt.stackSize == 0)
inv.setInventorySlotContents(i, null);
inv.decrStackSize(i, rem);
if(invSpark != null)
invSpark.onItemExtracted(stackAt);
}