fixes #43 and fixes #48

This commit is contained in:
modmuss50 2015-06-25 07:55:29 +01:00
parent 7ba9cad072
commit f9a99feee0
3 changed files with 7 additions and 7 deletions

View file

@ -180,7 +180,7 @@ public class TileMatterFabricator extends TileMachineBase implements IWrenchable
energy.updateEntity();
if (!super.worldObj.isRemote) {
for (int i = 0; i < 5; i++) {
for (int i = 0; i < 6; i++) {
ItemStack stack = inventory.getStackInSlot(i);
if (this.amplifier < 100000 && stack != null) {
int amp = (int) ((long) (getValue(stack) / 32));
@ -191,9 +191,7 @@ public class TileMatterFabricator extends TileMachineBase implements IWrenchable
}
}
}
if (this.amplifier > 0) {
if (this.amplifier > this.energy.getEnergyStored()) {
this.progresstime += this.energy.getEnergyStored();
@ -211,8 +209,6 @@ public class TileMatterFabricator extends TileMachineBase implements IWrenchable
}
if (this.progresstime > this.maxProgresstime() && this.spaceForOutput()) {
this.progresstime -= this.maxProgresstime();
this.addOutputProducts();