mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2025-01-06 18:47:53 +01:00
Added workaround for slime, ghast and squid entity names.
This commit is contained in:
parent
74be64d2ab
commit
31a1cec963
@ -76,7 +76,21 @@ public abstract class ModifyworldListener implements Listener {
|
||||
return "animal.wolf";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Fixtures for Bukkit dev lazyness
|
||||
if (entity instanceof Ghast){
|
||||
return "monster.ghast";
|
||||
}
|
||||
|
||||
if (entity instanceof Squid){
|
||||
return "animal.squid";
|
||||
}
|
||||
|
||||
if (entity instanceof Slime){
|
||||
return "monster.slime";
|
||||
}
|
||||
|
||||
|
||||
String entityName = entity.getClass().getSimpleName();
|
||||
|
||||
if (entityName.startsWith("Craft")) {
|
||||
@ -88,7 +102,7 @@ public abstract class ModifyworldListener implements Listener {
|
||||
} else if (Animals.class.isAssignableFrom(entity.getClass())) {
|
||||
entityName = "animal." + entityName;
|
||||
}
|
||||
|
||||
|
||||
return entityName;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user