Fixes energy gui scaling
This commit is contained in:
parent
466f50b232
commit
aff8c26c49
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ public abstract class TilePowerAcceptor extends RFProviderTile implements
|
|||
}
|
||||
|
||||
public int getEnergyScaled(int scale) {
|
||||
return (int)(getEnergy() * scale / getMaxPower());
|
||||
return (int) ((getEnergyStored(ForgeDirection.UNKNOWN) * scale / getMaxEnergyStored(ForgeDirection.UNKNOWN)) * PowerSystem.euPerRF);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue