Feature/fluidreplicator (#1482)
Added Fluid Replicator multiblock machine.
This commit is contained in:
parent
7b275bebb1
commit
fef10740ba
29 changed files with 1202 additions and 121 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue