This commit is contained in:
Modmuss50 2015-11-18 19:41:37 +00:00
parent 0f09088813
commit 806cf757a5
2 changed files with 23 additions and 26 deletions

View file

@ -79,7 +79,7 @@ public class ContainerRollingMachine extends RebornContainer {
if (this.currentItemBurnTime != tile.runTime) {
crafting.sendProgressBarUpdate(this, 0, tile.runTime);
}
if (this.burnTime != tile.tickTime) {
if (this.burnTime != tile.tickTime || tile.tickTime == -1) {
crafting.sendProgressBarUpdate(this, 1, tile.tickTime);
}
if (this.energy != (int) tile.getEnergy()) {
@ -100,6 +100,9 @@ public class ContainerRollingMachine extends RebornContainer {
this.energy = value;
}
this.tile.runTime = this.currentItemBurnTime;
if(this.burnTime == -1){
this.burnTime = 0;
}
this.tile.tickTime = this.burnTime;
this.tile.setEnergy(this.energy);
}