Skip to content

Commit

Permalink
Fix sheep-color-preservance
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakllp committed Dec 29, 2024
1 parent b174393 commit 13ebde9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public enum MyPetType {
.v("1.7.10", 55)
.v("1.13", "slime")
.search()),
Sniffer("SNIFFER", "1.20", MySnowman.class, new Compat<>()
Sniffer("SNIFFER", "1.20", MySniffer.class, new Compat<>()
.v("1.20", "sniffer")
.search()),
Snowman("SNOWMAN", "1.7.10", MySnowman.class, new Compat<>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public TagCompound writeExtendedInfo() {
@Override
public void readExtendedInfo(TagCompound info) {
if (info.containsKeyAs("Color", TagInt.class)) {
setColor(DyeColor.getByWoolData((byte) info.getAs("Color", TagInt.class).getIntData()));
setColor(DyeColor.getByDyeData((byte) info.getAs("Color", TagInt.class).getIntData()));
} else if (info.containsKeyAs("Color", TagByte.class)) {
setColor(DyeColor.getByWoolData(info.getAs("Color", TagByte.class).getByteData()));
setColor(DyeColor.getByDyeData(info.getAs("Color", TagByte.class).getByteData()));
}
if (info.containsKey("Sheared")) {
setSheared(info.getAs("Sheared", TagByte.class).getBooleanData());
Expand Down

0 comments on commit 13ebde9

Please sign in to comment.