mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-09 16:17:37 +02:00
Force repair inventory refresh.
This commit is contained in:
@@ -61,7 +61,7 @@ public class Commandrepair extends EssentialsCommand
|
||||
repairItem(item);
|
||||
|
||||
charge.charge(user);
|
||||
|
||||
user.updateInventory();
|
||||
user.sendMessage(_("repair", itemName.replace('_', ' ')));
|
||||
}
|
||||
|
||||
@@ -75,6 +75,7 @@ public class Commandrepair extends EssentialsCommand
|
||||
repairItems(user.getInventory().getArmorContents(), user, repaired);
|
||||
}
|
||||
|
||||
user.updateInventory();
|
||||
if (repaired.isEmpty())
|
||||
{
|
||||
throw new Exception(_("repairNone"));
|
||||
|
Reference in New Issue
Block a user