Fixed crash when RF is disabled

This commit is contained in:
modmuss50 2015-08-16 11:50:25 +01:00
parent 2b979f4c4c
commit 11e680500f

View file

@ -281,7 +281,7 @@ public abstract class TilePowerAcceptor extends RFProviderTile implements
}
public int getEnergyScaled(int scale) {
return (int) ((getEnergyStored(ForgeDirection.UNKNOWN) * scale / getMaxEnergyStored(ForgeDirection.UNKNOWN)) * ConfigTechReborn.euPerRF);
return (int) ((energy * scale / getMaxOutput() * ConfigTechReborn.euPerRF));
}
@Override