aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/entityviewer/HorseModifier.java6
1 files 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 {