mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Fixes #equalsItemMeta
This commit is contained in:
parent
45c807c6bd
commit
9b8eff4977
@ -295,7 +295,7 @@ public final class SlimefunUtils {
|
||||
} else if (itemMeta.hasDisplayName() && sfitemMeta.hasDisplayName() && !itemMeta.getDisplayName().equals(sfitemMeta.getDisplayName())) {
|
||||
return false;
|
||||
} else if (itemMeta instanceof PotionMeta && sfitemMeta instanceof PotionMeta) {
|
||||
return ((PotionMeta) itemMeta).getBasePotionData().equals(((PotionMeta) sfitemMeta).getBasePotionData());
|
||||
return ((PotionMeta) itemMeta).getBasePotionData().hashCode() == ((PotionMeta) sfitemMeta).getBasePotionData().hashCode();
|
||||
} else if (!checkLore) {
|
||||
return true;
|
||||
} else if (itemMeta.hasLore() && sfitemMeta.hasLore()) {
|
||||
|
Loading…
Reference in New Issue
Block a user