We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EntityTag.color
1 parent 2858f2f commit 85a7bcbCopy full SHA for 85a7bcb
1 file changed
plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityColor.java
@@ -259,6 +259,9 @@ public String getColor(boolean includeDeprecated) {
259
case CAT -> {
260
Cat cat = as(Cat.class);
261
// TODO once 1.21 is the minimum supported version, replace with direct registry-based handling
262
+ if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_21)) {
263
+ yield Utilities.namespacedKeyToString(cat.getCatType().getKey()) + "|" + cat.getCollarColor().name();
264
+ }
265
yield cat.getCatType() + "|" + cat.getCollarColor().name();
266
}
267
case PANDA -> {
0 commit comments