#48: Ignore case to compare

This commit is contained in:
Daniel Saukel 2016-05-15 13:41:31 +02:00
parent 1b7842ea80
commit 34226a5568
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class Announcers {
*/ */
public Announcer getByName(String name) { public Announcer getByName(String name) {
for (Announcer announcer : announcers) { for (Announcer announcer : announcers) {
if (announcer.getName().equals(name)) { if (announcer.getName().equalsIgnoreCase(name)) {
return announcer; return announcer;
} }
} }

View File

@ -41,7 +41,7 @@ public class DMobTypes {
*/ */
public DMobType getByName(String name) { public DMobType getByName(String name) {
for (DMobType dMobType : dMobTypes) { for (DMobType dMobType : dMobTypes) {
if (dMobType.getName().equals(name)) { if (dMobType.getName().equalsIgnoreCase(name)) {
return dMobType; return dMobType;
} }
} }

View File

@ -41,7 +41,7 @@ public class DClasses {
*/ */
public DClass getByName(String name) { public DClass getByName(String name) {
for (DClass dClass : dClasses) { for (DClass dClass : dClasses) {
if (dClass.getName().equals(name)) { if (dClass.getName().equalsIgnoreCase(name)) {
return dClass; return dClass;
} }
} }