mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Energy usage calculations are now much more efficient
This commit is contained in:
1 parent
763aef4fd0
commit
a6e8fc8de0
10 files changed
+45
-22
No files matched your search
@@ -599,7 +599,7 @@ public final class MekanismUtils
|
||||
return def * Math.pow(general.maxUpgradeMultiplier, (2*mgmt.getComponent().getUpgrades(Upgrade.SPEED)-(float)mgmt.getComponent().getUpgrades(Upgrade.ENERGY))/(float)Upgrade.ENERGY.getMax());
|
||||
}
|
||||
|
||||
public static double getPureEnergyPerTick(IUpgradeTile mgmt, double def)
|
||||
public static double getBaseEnergyPerTick(IUpgradeTile mgmt, double def)
|
||||
{
|
||||
return def * Math.pow(general.maxUpgradeMultiplier, -(float)mgmt.getComponent().getUpgrades(Upgrade.ENERGY)/(float)Upgrade.ENERGY.getMax());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user