Fixed Wooden Item Pipe extracing items for 1/10th the energy it should use.
This commit is contained in:
parent
b5c2129706
commit
35d1def0b2
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue