mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 12:51:09 -05:00
Compare magic string values with equalsIgnoreCase.
This commit is contained in:
parent
065ba4eea0
commit
8b1b94cb7c
1 changed files with 6 additions and 0 deletions
|
@ -834,6 +834,12 @@ public class MagicValues {
|
|||
if(num.doubleValue() == num2.doubleValue()) {
|
||||
return (T) key;
|
||||
}
|
||||
} else if(String.class.isAssignableFrom(val.getClass()) && String.class.isAssignableFrom(value.getClass())) {
|
||||
String str = (String) val;
|
||||
String str2 = (String) value;
|
||||
if(str.equalsIgnoreCase(str2)) {
|
||||
return (T) key;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue