mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 21:48:43 +01:00
#48: Ignore case to compare
This commit is contained in:
parent
1b7842ea80
commit
34226a5568
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user