summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-06-27 02:12:07 +0100
committerKHobbits <rob@khobbits.co.uk>2013-06-28 14:14:43 +0100
commitdb234b983742f443170368af01a51a352b4c17c8 (patch)
tree11b8fa046f0eaa27aeea620b6c62dca4cc2854a9
parent42b77864cd9b11adcb71b96490295213193eb329 (diff)
downloadEssentials-db234b983742f443170368af01a51a352b4c17c8.tar
Essentials-db234b983742f443170368af01a51a352b4c17c8.tar.gz
Essentials-db234b983742f443170368af01a51a352b4c17c8.tar.lz
Essentials-db234b983742f443170368af01a51a352b4c17c8.tar.xz
Essentials-db234b983742f443170368af01a51a352b4c17c8.zip
Force repair inventory refresh.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandrepair.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java b/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java
index 32b4fd5ee..824ff6678 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java
@@ -61,7 +61,7 @@ public class Commandrepair extends EssentialsCommand
repairItem(item);
charge.charge(user);
-
+ user.updateInventory();
user.sendMessage(_("repair", itemName.replace('_', ' ')));
}
@@ -74,7 +74,8 @@ public class Commandrepair extends EssentialsCommand
{
repairItems(user.getInventory().getArmorContents(), user, repaired);
}
-
+
+ user.updateInventory();
if (repaired.isEmpty())
{
throw new Exception(_("repairNone"));