Fixed Wooden Item Pipe extracing items for 1/10th the energy it should use.

This commit is contained in:
Andrew Dudney 2014-10-18 20:44:47 -06:00
parent b5c2129706
commit 35d1def0b2

View file

@ -142,7 +142,7 @@ public class PipeItemsWood extends Pipe<PipeTransportItems> implements IEnergyHa
for (ItemStack stack : extracted) {
if (stack == null || stack.stackSize == 0) {
battery.useEnergy(1, 1, false);
battery.useEnergy(10, 10, false);
continue;
}
@ -192,7 +192,7 @@ public class PipeItemsWood extends Pipe<PipeTransportItems> implements IEnergyHa
if (slot != null && slot.stackSize > 0 && inventory.canExtractItem(k, slot, from.ordinal())) {
if (doRemove) {
int stackSize = battery.useEnergy(1, slot.stackSize, false);
int stackSize = battery.useEnergy(10, slot.stackSize*10, false)/10;
return inventory.decrStackSize(k, stackSize);
} else {