From e31ee1c53b8d2617f84bb571d89fffdb203e9b4e Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 5 Oct 2023 20:28:29 +0100 Subject: [PATCH] Fixed tiny silly ponies reverting to normal villagers when they grow up --- .../entity/npc/textures/SillyPonyTextureSupplier.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/client/render/entity/npc/textures/SillyPonyTextureSupplier.java b/src/main/java/com/minelittlepony/client/render/entity/npc/textures/SillyPonyTextureSupplier.java index 5bd82546..276a0379 100644 --- a/src/main/java/com/minelittlepony/client/render/entity/npc/textures/SillyPonyTextureSupplier.java +++ b/src/main/java/com/minelittlepony/client/render/entity/npc/textures/SillyPonyTextureSupplier.java @@ -8,7 +8,9 @@ public class SillyPonyTextureSupplier { public static TextureSupplier create(TextureSupplier fallback, TextureSupplier formatter) { Identifier egg = formatter.apply("silly_pony"); Identifier egg2 = formatter.apply("tiny_silly_pony"); - return entity -> isBestPony(entity) ? (entity.isBaby() ? egg2 : egg) : fallback.apply(entity); + return entity -> { + return isBestPony(entity) ? ("Dinky".equals(entity.getCustomName().getString()) ? egg2 : egg) : fallback.apply(entity); + }; } public static boolean isBestPony(LivingEntity entity) { @@ -16,7 +18,7 @@ public class SillyPonyTextureSupplier { return false; } String name = entity.getCustomName().getString(); - return "Derpy".equals(name) || (entity.isBaby() && "Dinky".equals(name)); + return "Derpy".equals(name) || "Dinky".equals(name); } public static boolean isCrownPony(LivingEntity entity) {