Fix setPatternColor on tropical fish bucket meta

Prior to this commit, the tropical fish bucket meta would set the body
color to the previous metas pattern colour when updating the pattern
colour.

This commit hence simply fixes this by using the proper body colour
value when updating the pattern color.
This commit is contained in:
Bjarne Koll
2021-11-06 23:15:20 +01:00
parent 0277ecd75d
commit 83a6307788
2 changed files with 42 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ class CraftMetaTropicalFishBucket extends CraftMetaItem implements TropicalFishB
if (this.variant == null) {
this.variant = 0;
}
this.variant = CraftTropicalFish.getData(color, this.getPatternColor(), this.getPattern());
this.variant = CraftTropicalFish.getData(color, this.getBodyColor(), this.getPattern()); // Paper - properly set tropical fish pattern color without mutating body color
}
@Override