Fix #1087 Stop multifarm from putting harvest into upper slots

This commit is contained in:
mezz committed 2016-05-23 00:06:14 -07:00
1 parent 75d747df70
commit fd6958b637
1 file changed
+2 -14
@@ -201,22 +201,10 @@ public class InventoryFarm extends InventoryAdapterRestricted implements IFarmIn
public void stowHarvest(Iterable<ItemStack> harvested, Stack<ItemStack> pendingProduce) {
for (ItemStack harvest : harvested) {
if (acceptsAsGermling(harvest)) {
harvest.stackSize -= InventoryUtil.addStack(germlingsInventory, harvest, true);
}
if (harvest.stackSize <= 0) {
continue;
}
harvest.stackSize -= InventoryUtil.addStack(productInventory, harvest, true);
if (harvest.stackSize <= 0) {
continue;
if (harvest.stackSize > 0) {
pendingProduce.push(harvest);
}
pendingProduce.push(harvest);
}
}