From 0e828eaf0734b42c2212cf73bdef64b44d04bf77 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 29 May 2014 23:31:23 +1200 Subject: [PATCH] Opps. Fixed DisguiseType's with a _ not displaying properly in DisguiseEntity --- src/me/libraryaddict/disguise/DisguiseListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/DisguiseListener.java b/src/me/libraryaddict/disguise/DisguiseListener.java index aa20e320..48375408 100644 --- a/src/me/libraryaddict/disguise/DisguiseListener.java +++ b/src/me/libraryaddict/disguise/DisguiseListener.java @@ -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 += " "; }