diff --git a/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java b/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java index 4cf8d95..1ae9e88 100644 --- a/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java +++ b/src/main/java/ladysnake/ratsmischief/common/entity/RatEntity.java @@ -374,7 +374,7 @@ public void mobTick() { } if (this.hasCustomName()) { - switch (getCustomName().toString().toLowerCase(Locale.ROOT)) { + switch (getCustomName().getString().toLowerCase(Locale.ROOT)) { case "doctor4t" -> setRatType(Type.DOCTOR4T); case "ratater" -> setRatType(Type.RATATER); case "rat kid", "hat kid" -> setRatType(Type.RAT_KID);