Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ public static boolean colorIsApplicable(EntityType type) {
// TODO Frog variants technically have registries on all supported versions
public static String getColor(Entity entity, boolean includeDeprecated) {
if (entity instanceof Frog frog) {
return String.valueOf(frog.getVariant());
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_21)) {
return Utilities.namespacedKeyToString(frog.getVariant().getKey());
}
return frog.getVariant().toString();
}
else if (entity instanceof Boat boat) {
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_21)) {
Expand Down