13
0
geforkt von Mirrors/Paper

SPIGOT-5403: isSimilar returns true for different skulls

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2019-12-05 10:37:02 +11:00
Ursprung e7370ab173
Commit a0dd86fbe1

Datei anzeigen

@ -191,7 +191,8 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
if (meta instanceof CraftMetaSkull) { if (meta instanceof CraftMetaSkull) {
CraftMetaSkull that = (CraftMetaSkull) meta; CraftMetaSkull that = (CraftMetaSkull) meta;
return (this.hasOwner() ? that.hasOwner() && this.profile.equals(that.profile) : !that.hasOwner()); // SPIGOT-5403: equals does not check properties
return (this.profile != null ? that.profile != null && this.profile.equals(that.profile) && this.profile.getProperties().equals(that.profile.getProperties()) : that.profile == null);
} }
return true; return true;
} }