Added workaround for slime, ghast and squid entity names.

This commit is contained in:
t3hk0d3 2011-08-02 02:01:56 +04:00
parent 74be64d2ab
commit 31a1cec963

View File

@ -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;
}