This commit is contained in:
parent
327bba2775
commit
0d4fced8bb
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ public class TileChemicalReactor extends TilePowerAcceptor
|
||||||
// }
|
// }
|
||||||
|
|
||||||
public int getProgressScaled(final int scale) {
|
public int getProgressScaled(final int scale) {
|
||||||
if (this.crafter.currentTickTime != 0) {
|
if (this.crafter.currentTickTime != 0 && this.crafter.currentNeededTicks > 0) {
|
||||||
return this.crafter.currentTickTime * scale / this.crafter.currentNeededTicks;
|
return this.crafter.currentTickTime * scale / this.crafter.currentNeededTicks;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue