fixes #66
This commit is contained in:
parent
a063e13612
commit
2e7f506115
1 changed files with 4 additions and 3 deletions
|
@ -184,10 +184,11 @@ public class TileMatterFabricator extends TileMachineBase implements IWrenchable
|
||||||
ItemStack stack = inventory.getStackInSlot(i);
|
ItemStack stack = inventory.getStackInSlot(i);
|
||||||
if (this.amplifier < 100000 && stack != null) {
|
if (this.amplifier < 100000 && stack != null) {
|
||||||
int amp = (int) ((long) (getValue(stack) / 32));
|
int amp = (int) ((long) (getValue(stack) / 32));
|
||||||
System.out.println(amp);
|
|
||||||
if (ItemUtils.isItemEqual(stack, inventory.getStackInSlot(i), true, true)) {
|
if (ItemUtils.isItemEqual(stack, inventory.getStackInSlot(i), true, true)) {
|
||||||
this.amplifier += amp;
|
if(energy.useEnergy(1)){
|
||||||
inventory.decrStackSize(i, 1);
|
this.amplifier += amp;
|
||||||
|
inventory.decrStackSize(i, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue