SPIGOT-6342: TROPICAL_FISH_BUCKET isSimilar returns true when it should not

By: Gerrygames <gecam59@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2021-02-06 09:23:50 +11:00
parent 8b277612a9
commit 236e582f0b

View File

@ -154,7 +154,7 @@ class CraftMetaTropicalFishBucket extends CraftMetaItem implements TropicalFishB
CraftMetaTropicalFishBucket that = (CraftMetaTropicalFishBucket) meta;
return (hasVariant() ? that.hasVariant() && this.variant.equals(that.variant) : !that.hasVariant())
&& entityTag != null ? that.entityTag != null && this.entityTag.equals(that.entityTag) : entityTag == null;
&& (entityTag != null ? that.entityTag != null && this.entityTag.equals(that.entityTag) : that.entityTag == null);
}
return true;
}