Fix matter fabricator uses scrapboxs when full (#1052)

* Fix matter fabricator using scrapboxes when full
This commit is contained in:
Dimmerworld 2017-04-15 02:56:11 +10:00 committed by Modmuss50
parent ff3baf46f3
commit 723fc1a551

View file

@ -107,7 +107,7 @@ public class TileMatterFabricator extends TilePowerAcceptor
if (!super.world.isRemote) { if (!super.world.isRemote) {
for (int i = 0; i < 6; i++) { for (int i = 0; i < 6; i++) {
final ItemStack stack = this.inventory.getStackInSlot(i); final ItemStack stack = this.inventory.getStackInSlot(i);
if (!stack.isEmpty()) { if (!stack.isEmpty() && spaceForOutput()) {
final int amp = this.getValue(stack); final int amp = this.getValue(stack);
if (amp != 0 && this.canUseEnergy(85)) { if (amp != 0 && this.canUseEnergy(85)) {
this.useEnergy(85); this.useEnergy(85);