Made ItemStack .equals take into account data and enchantments
This commit is contained in:
parent
aba0bbc70f
commit
24804f6419
@ -200,7 +200,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable {
|
|||||||
|
|
||||||
ItemStack item = (ItemStack) obj;
|
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
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user