aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-04-14 02:07:51 +0200
committernea <romangraef@gmail.com>2022-04-14 04:13:23 +0200
commite8ef0a7304d99aa50a9ae99902ba8096d03d047e (patch)
treeb7106083d5d378f9155c2941d5bae00b92040f31
parente71fa15bb06ecdb368ca498867b8f937c636a657 (diff)
downloadNotEnoughUpdates-e8ef0a7304d99aa50a9ae99902ba8096d03d047e.tar.gz
NotEnoughUpdates-e8ef0a7304d99aa50a9ae99902ba8096d03d047e.tar.bz2
NotEnoughUpdates-e8ef0a7304d99aa50a9ae99902ba8096d03d047e.zip
horseys ouch
-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 {