mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Use the assigned variable when looking at durability in itemdb
This commit is contained in:
parent
9679a90d88
commit
0a3ecbcd0e
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class Commanditemdb extends EssentialsCommand
|
|||
if (itemStack.getType() != Material.AIR)
|
||||
{
|
||||
int maxuses = itemStack.getType().getMaxDurability();
|
||||
int durability = ((itemStack.getType().getMaxDurability() + 1) - itemStack.getDurability());
|
||||
int durability = ((maxuses + 1) - itemStack.getDurability());
|
||||
if (maxuses != 0)
|
||||
{
|
||||
sender.sendMessage(_("durability", Integer.toString(durability)));
|
||||
|
|
Loading…
Reference in a new issue