mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
Consider repair cost when checking ItemMeta emptiness. Fixes BUKKIT-5304
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
75d5bdc98c
commit
3f3ce7034c
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
|||
|
||||
@Overridden
|
||||
boolean isEmpty() {
|
||||
return !(hasDisplayName() || hasEnchants() || hasLore() || hasAttributes());
|
||||
return !(hasDisplayName() || hasEnchants() || hasLore() || hasAttributes() || hasRepairCost());
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
|
|
Loading…
Add table
Reference in a new issue