Commit ac9e9258 authored by Ryan's avatar Ryan

Fixed Ring of Forging showing negative charges

parent c664e256
......@@ -30,7 +30,7 @@ public class ItemDurability implements InvActionListener, InvActionExecutiveList
player.getWorld().getServer().getConfig().RING_OF_RECOIL_LIMIT + " charges remaining.");
} else if (item.getID() == ItemId.RING_OF_FORGING.id()) {
if (player.getCache().hasKey("ringofforging"))
charges = player.getWorld().getServer().getConfig().RING_OF_RECOIL_LIMIT - player.getCache().getInt("ringofforging");
charges = player.getWorld().getServer().getConfig().RING_OF_FORGING_USES - player.getCache().getInt("ringofforging");
else
charges = player.getWorld().getServer().getConfig().RING_OF_FORGING_USES;
player.message("Your Ring of Forging has " + charges + "/" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment