mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Port config rewrite (#5378)
Port Config system, Remove some unused code, Refactored various Tier enums out into their own package
This commit is contained in:
1 parent
a776879eed
commit
9d98ef575d
209 files changed
+3275
-2763
No files matched your search
@@ -7,7 +7,7 @@ import java.util.Map;
|
||||
import javax.annotation.Nullable;
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.common.base.IUpgradeTile;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.config.MekanismConfig;
|
||||
import mekanism.common.util.LangUtils;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -128,8 +128,8 @@ public enum Upgrade {
|
||||
List<String> ret = new ArrayList<>();
|
||||
|
||||
if (canMultiply()) {
|
||||
double effect = Math
|
||||
.pow(general.maxUpgradeMultiplier, (float) tile.getComponent().getUpgrades(this) / (float) getMax());
|
||||
double effect = Math.pow(MekanismConfig.current().general.maxUpgradeMultiplier.val(),
|
||||
(float) tile.getComponent().getUpgrades(this) / (float) getMax());
|
||||
|
||||
ret.add(LangUtils.localize("gui.upgrades.effect") + ": " + (Math.round(effect * 100) / 100F) + "x");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user