mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Made ItemStack .equals take into account data and enchantments
This commit is contained in:
parent
aba0bbc70f
commit
24804f6419
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable {
|
|||
|
||||
ItemStack item = (ItemStack) obj;
|
||||
|
||||
return item.getAmount() == getAmount() && item.getTypeId() == getTypeId();
|
||||
return item.getAmount() == getAmount() && item.getTypeId() == getTypeId() && getDurability() == item.getDurability() && getEnchantments().equals(item.getEnchantments());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue