1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02:00

Force repair inventory refresh.

This commit is contained in:
KHobbits
2013-06-27 02:12:07 +01:00
parent 42b77864cd
commit db234b9837

View File

@@ -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"));