mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
Made ItemStack .equals take into account data and enchantments
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user