Should fix electric furnace progress + formatting. Closes #1621

This commit is contained in:
drcrazy 2018-10-29 17:40:16 +03:00
parent 50e35578a2
commit df13aeeba2
4 changed files with 16 additions and 16 deletions

View file

@ -67,8 +67,8 @@ public abstract class TileGenericMachine extends TilePowerAcceptor
}
public int getProgressScaled(final int scale) {
if (getRecipeCrafter() != null && getRecipeCrafter().currentTickTime != 0) {
return getRecipeCrafter().currentTickTime * scale / getRecipeCrafter().currentNeededTicks;
if (crafter != null && crafter.currentTickTime != 0) {
return crafter.currentTickTime * scale / crafter.currentNeededTicks;
}
return 0;
}