mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fix integer conversion
This commit is contained in:
1 parent
9294719ab2
commit
c71c5d9fe7
1 file changed
+1
-1
@@ -632,7 +632,7 @@ public final class MekanismUtils
|
||||
*/
|
||||
public static int getSecondaryEnergyPerTick(IUpgradeManagement mgmt, int def)
|
||||
{
|
||||
return def * (int)Math.pow(Mekanism.maxUpgradeMultiplier, mgmt.getSpeedMultiplier()/8.0);
|
||||
return (int)(def * Math.pow(Mekanism.maxUpgradeMultiplier, mgmt.getSpeedMultiplier()/8.0));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user