mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-02 14:29:07 +01:00
Fix for missing entity indentifications
This commit is contained in:
parent
63adfb166c
commit
c9a8b6ba0a
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user