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

This commit is contained in:
Gerrygames 2021-02-06 09:23:50 +11:00 committed by md_5
parent 085fe67aac
commit ed4d4cd651
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -154,7 +154,7 @@ class CraftMetaTropicalFishBucket extends CraftMetaItem implements TropicalFishB
CraftMetaTropicalFishBucket that = (CraftMetaTropicalFishBucket) meta; CraftMetaTropicalFishBucket that = (CraftMetaTropicalFishBucket) meta;
return (hasVariant() ? that.hasVariant() && this.variant.equals(that.variant) : !that.hasVariant()) 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; return true;
} }