mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-22 16:37:25 +00:00
Force repair inventory refresh.
This commit is contained in:
parent
42b77864cd
commit
db234b9837
1 changed files with 3 additions and 2 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue