mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 18:42:07 +01:00
Made ItemStack .equals take into account data and enchantments
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
aa5b203974
commit
868b48c82c
@ -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…
Reference in New Issue
Block a user