diff --git a/src/main/java/slimeknights/toolleveling/config/Config.java b/src/main/java/slimeknights/toolleveling/config/Config.java index d4cf393..b0f4bec 100644 --- a/src/main/java/slimeknights/toolleveling/config/Config.java +++ b/src/main/java/slimeknights/toolleveling/config/Config.java @@ -16,6 +16,11 @@ public void load(File file) { ConfigFile.init(); configFile = this.load(new ConfigFile(file), ConfigFile.class); + + if (configFile.toolxp.levelMultiplier < 2) { + configFile.toolxp.levelMultiplier = 2f; + configFile.setNeedsSaving(); + } } public static int getBaseXpForTool(Item item) { diff --git a/src/main/java/slimeknights/toolleveling/config/ConfigFile.java b/src/main/java/slimeknights/toolleveling/config/ConfigFile.java index 7a41bd3..ecc3b74 100644 --- a/src/main/java/slimeknights/toolleveling/config/ConfigFile.java +++ b/src/main/java/slimeknights/toolleveling/config/ConfigFile.java @@ -85,6 +85,7 @@ static class ToolXP { @Setting(comment = "Base XP for each of the listed tools") public Map baseXpForTool = new HashMap<>(); + @Setting(comment = "How much the XP cost will multiply per level, minimum 2.") public float levelMultiplier = 2f; } }