mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
Force repair inventory refresh.
This commit is contained in:
parent
42b77864cd
commit
db234b9837
@ -61,7 +61,7 @@ public class Commandrepair extends EssentialsCommand
|
|||||||
repairItem(item);
|
repairItem(item);
|
||||||
|
|
||||||
charge.charge(user);
|
charge.charge(user);
|
||||||
|
user.updateInventory();
|
||||||
user.sendMessage(_("repair", itemName.replace('_', ' ')));
|
user.sendMessage(_("repair", itemName.replace('_', ' ')));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,7 +74,8 @@ public class Commandrepair extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
repairItems(user.getInventory().getArmorContents(), user, repaired);
|
repairItems(user.getInventory().getArmorContents(), user, repaired);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user.updateInventory();
|
||||||
if (repaired.isEmpty())
|
if (repaired.isEmpty())
|
||||||
{
|
{
|
||||||
throw new Exception(_("repairNone"));
|
throw new Exception(_("repairNone"));
|
||||||
|
Loading…
Reference in New Issue
Block a user