From e8ef0a7304d99aa50a9ae99902ba8096d03d047e Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 14 Apr 2022 02:07:51 +0200 Subject: horseys ouch --- .../notenoughupdates/miscfeatures/entityviewer/HorseModifier.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/HorseModifier.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/HorseModifier.java index 3e4efa3d..7fd2dadd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/HorseModifier.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/HorseModifier.java @@ -14,8 +14,8 @@ public class HorseModifier extends EntityViewerModifier { if (!(base instanceof EntityHorse)) return null; EntityHorse horse = (EntityHorse) base; - if (info.has("type")) { - String type = info.get("type").getAsString().intern(); + if (info.has("kind")) { + String type = info.get("kind").getAsString().intern(); switch (type) { case "skeleton": horse.setHorseType(4); @@ -37,7 +37,7 @@ public class HorseModifier extends EntityViewerModifier { } } if (info.has("armor")) { - JsonElement el = info.get("type"); + JsonElement el = info.get("armor"); if (el.isJsonNull()) { horse.setHorseArmorStack(null); } else { -- cgit