Fixed a missed typo where disguisenextentity comes up with weird disguise names

This commit is contained in:
libraryaddict 2014-06-15 20:38:13 +12:00
parent 20b3d02f76
commit e9fd160be8

View File

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