From 2ce9b38c74cdf631b1abed4059982c096c61bac8 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 19 Apr 2020 07:20:03 +1200 Subject: [PATCH] Fix minor error --- .../libraryaddict/disguise/utilities/modded/ModdedManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/modded/ModdedManager.java b/src/main/java/me/libraryaddict/disguise/utilities/modded/ModdedManager.java index 1301553c..e594526e 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/modded/ModdedManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/modded/ModdedManager.java @@ -99,8 +99,7 @@ public class ModdedManager implements PluginMessageListener { public static CustomEntity getCustomEntity(String name) { for (CustomEntity entity : entities.values()) { - if (!name.contains(":") ? entity.getName().split(":")[1].equalsIgnoreCase(name) : - !entity.getName().equalsIgnoreCase(name)) { + if (!entity.getName().equalsIgnoreCase(name)) { continue; }