Fix minor error

This commit is contained in:
libraryaddict 2020-04-19 07:20:03 +12:00
parent 001064adf0
commit 2ce9b38c74
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

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