From c9a8b6ba0a49ad1395b0f4569b64497e826ba3ec Mon Sep 17 00:00:00 2001 From: Zrips Date: Wed, 14 Mar 2018 16:11:10 +0200 Subject: [PATCH] Fix for missing entity indentifications --- .../java/com/gamingmesh/jobs/nmsUtil/v1_11.java | 16 ++++++++++++++++ .../java/com/gamingmesh/jobs/nmsUtil/v1_12.java | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_11.java b/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_11.java index 016f52f7..45ab98e5 100644 --- a/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_11.java +++ b/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_11.java @@ -23,6 +23,22 @@ public class v1_11 implements NMS { @Override public String getRealType(Entity entity) { + switch (entity.getType().name()) { + case "WITHER_SKELETON": + return "skeletonwither"; + case "STRAY": + return "SkeletonStray"; + case "ZOMBIE_VILLAGER": + return "ZombieVillager"; + case "HUSK": + return "ZombieHusk"; + case "SKELETON_HORSE": + return "HorseSkeleton"; + case "ZOMBIE_HORSE": + return "HorseZombie"; + case "ELDER_GUARDIAN": + return "GuardianElder"; + } return entity.getType().name(); } diff --git a/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_12.java b/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_12.java index 267aba18..aadbc3dc 100644 --- a/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_12.java +++ b/src/main/java/com/gamingmesh/jobs/nmsUtil/v1_12.java @@ -23,6 +23,22 @@ public class v1_12 implements NMS { @Override public String getRealType(Entity entity) { + switch (entity.getType().name()) { + case "WITHER_SKELETON": + return "skeletonwither"; + case "STRAY": + return "SkeletonStray"; + case "ZOMBIE_VILLAGER": + return "ZombieVillager"; + case "HUSK": + return "ZombieHusk"; + case "SKELETON_HORSE": + return "HorseSkeleton"; + case "ZOMBIE_HORSE": + return "HorseZombie"; + case "ELDER_GUARDIAN": + return "GuardianElder"; + } return entity.getType().name(); }