diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/leveling/IguanaLevelingLogic.java b/src/main/java/iguanaman/iguanatweakstconstruct/leveling/IguanaLevelingLogic.java index 6a3a527..573a907 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/leveling/IguanaLevelingLogic.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/leveling/IguanaLevelingLogic.java @@ -47,26 +47,26 @@ public class IguanaLevelingLogic { tag.setLong(TAG_BOOST_EXP, 0); } - public static String getXpString(ItemStack tool, boolean debug) + public static String getXpString(ItemStack tool) { - return getXpString(tool, debug, null); + return getXpString(tool, null); } - public static String getXpString(ItemStack tool, boolean debug, boolean pick) + public static String getXpString(ItemStack tool, boolean boostXp) { - return getXpToolTip(tool, debug, null, pick); + return getXpToolTip(tool, null, boostXp); } - public static String getXpString(ItemStack tool, boolean debug, NBTTagCompound tags) + public static String getXpString(ItemStack tool, NBTTagCompound tags) { - return getXpToolTip(tool, debug, tags, false); + return getXpToolTip(tool, tags, false); } /** * Returns the XP string for the ToolTip. * @param boostXp If true, the xp for the mining level boost will be returned instead of the xp for the next tool level. */ - public static String getXpToolTip(ItemStack tool, boolean debug, NBTTagCompound tags, boolean boostXp) + public static String getXpToolTip(ItemStack tool, NBTTagCompound tags, boolean boostXp) { if (tags == null) tags = tool.getTagCompound().getCompoundTag("InfiTool"); @@ -182,7 +182,7 @@ public class IguanaLevelingLogic { // display xp if we're below max level if (level < MAX_LEVEL) { - tips.add(getXpString(tool, false, false)); + tips.add(getXpString(tool, false)); modifierTips.add(""); } @@ -192,7 +192,7 @@ public class IguanaLevelingLogic { && !tags.hasKey("HarvestLevelModified") && (tool.getItem() instanceof Pickaxe || tool.getItem() instanceof Hammer)) { - tips.add(getXpString(tool, false, true)); + tips.add(getXpString(tool, true)); modifierTips.add(""); } } diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingEventHandler.java b/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingEventHandler.java index 6005026..f03c710 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingEventHandler.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingEventHandler.java @@ -89,7 +89,7 @@ public class LevelingEventHandler { toolTag.setLong("ToolEXP", 0); if (IguanaConfig.showTooltipXP) { - tips.add(IguanaLevelingLogic.getXpString(new ItemStack(event.tool), false, toolTag)); + tips.add(IguanaLevelingLogic.getXpString(new ItemStack(event.tool), toolTag)); modifierTips.add(""); } @@ -102,7 +102,7 @@ public class LevelingEventHandler { { if (IguanaConfig.showTooltipXP) { - tips.add(IguanaLevelingLogic.getXpToolTip(new ItemStack(event.tool), false, toolTag, true)); + tips.add(IguanaLevelingLogic.getXpToolTip(new ItemStack(event.tool), toolTag, true)); modifierTips.add(""); } @@ -176,13 +176,13 @@ public class LevelingEventHandler { if (IguanaConfig.showTooltipXP) { if (level <= 5) - event.left.add(IguanaLevelingLogic.getXpString(equipped, true)); + event.left.add(IguanaLevelingLogic.getXpString(equipped)); if (IguanaConfig.levelingPickaxeBoost) if (hLevel >= TConstructRegistry.getMaterial("Copper").harvestLevel() && hLevel < TConstructRegistry.getMaterial("Manyullyn").harvestLevel() && !tags.hasKey("HarvestLevelModified") && (equipped.getItem() instanceof Pickaxe || equipped.getItem() instanceof Hammer)) - event.left.add(IguanaLevelingLogic.getXpString(equipped, true, true)); + event.left.add(IguanaLevelingLogic.getXpString(equipped, true)); } } } diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModRedstone.java b/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModRedstone.java index 74e0321..5c4ade7 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModRedstone.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModRedstone.java @@ -158,7 +158,7 @@ public class IguanaModRedstone extends ItemModifier { int level = tags.getInteger("ToolLevel"); if (level <= 5) { - tips.add(IguanaLevelingLogic.getXpString(tool, false, false)); + tips.add(IguanaLevelingLogic.getXpString(tool, false)); modifierTips.add(""); } @@ -169,7 +169,7 @@ public class IguanaModRedstone extends ItemModifier { && !tags.hasKey("HarvestLevelModified") && (tool.getItem() instanceof Pickaxe || tool.getItem() instanceof Hammer)) { - tips.add(IguanaLevelingLogic.getXpString(tool, false, true)); + tips.add(IguanaLevelingLogic.getXpString(tool, true)); modifierTips.add(""); } } diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModUpgrade.java b/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModUpgrade.java index 0418749..708a1f5 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModUpgrade.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/modifiers/IguanaModUpgrade.java @@ -401,7 +401,7 @@ public class IguanaModUpgrade extends ItemModifier { { if (level <= 5) { - tips.add(IguanaLevelingLogic.getXpString(tool, false, false)); + tips.add(IguanaLevelingLogic.getXpString(tool, false)); modifierTips.add(""); } @@ -411,7 +411,7 @@ public class IguanaModUpgrade extends ItemModifier { && !tags.hasKey("HarvestLevelModified") && (tool.getItem() instanceof Pickaxe || tool.getItem() instanceof Hammer)) { - tips.add(IguanaLevelingLogic.getXpString(tool, false, true)); + tips.add(IguanaLevelingLogic.getXpString(tool, true)); modifierTips.add(""); }