From d409918bd6b391cfaeb765747e636997e8a7c332 Mon Sep 17 00:00:00 2001 From: Nonoriri Date: Sun, 24 Nov 2013 12:11:49 -0500 Subject: [PATCH] Properly capped unenchanting cost to 60. --- BankEconomyMod/src/me/kaZep/Base/PlayerListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index 1a75e70..daf76d6 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -13679,6 +13679,8 @@ class updateInventoryTask implements Runnable { for (Enchantment e : enchantments.keySet()) { cost += (1 + enchantments.get(e)); } + + cost = Math.min(60, cost); ItemStack orbs = new ItemStack(Material.SLIME_BALL);