Fix CraftMetaShield equality (#11232)

This commit is contained in:
Lulu13022002 2024-08-10 15:08:00 +02:00
parent 13a62521b0
commit 1569c093c5

View file

@ -1618,7 +1618,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
if (meta instanceof CraftMetaShield that) {
- return Objects.equal(this.banner, that.banner);
+ return Objects.equal(this.baseColor, that.baseColor) && Objects.equal(this.hasPatterns(), that.hasPatterns()); // Paper - general item meta fixes - decoupled base colour and patterns
+ return Objects.equal(this.baseColor, that.baseColor) && Objects.equal(this.patterns, that.patterns); // Paper - general item meta fixes - decoupled base colour and patterns
}
return true;
}