Opps. Fixed DisguiseType's with a _ not displaying properly in DisguiseEntity

This commit is contained in:
libraryaddict 2014-05-29 23:31:23 +12:00
parent f94748afa5
commit 0e828eaf07

View File

@ -132,7 +132,7 @@ public class DisguiseListener implements Listener {
} else {
String[] split = entity.getType().name().split("_");
for (int i = 0; i < split.length; i++) {
entityName += split[0].substring(0, 1) + split[0].substring(1).toLowerCase();
entityName += split[i].substring(0, 1) + split[i].substring(1).toLowerCase();
if (i + 1 < split.length) {
entityName += " ";
}