Feature/fluidreplicator (#1482)

Added Fluid Replicator multiblock machine.
This commit is contained in:
drcrazy 2018-04-12 15:42:12 +03:00 committed by GitHub
parent 7b275bebb1
commit fef10740ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 1202 additions and 121 deletions

View file

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