We had this lowercase for a reason, but why...?

We will need to ultimately have it case sensitive.
This commit is contained in:
boy0001 2014-12-14 11:55:14 +11:00
parent 8140581e4e
commit d827d7d230
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ public class StringWrapper {
return false; return false;
} }
final StringWrapper other = (StringWrapper) obj; final StringWrapper other = (StringWrapper) obj;
return other.value.toLowerCase().equals(this.value.toLowerCase()); return other.value.equals(this.value);
} }
/** /**
@ -77,6 +77,6 @@ public class StringWrapper {
if (this.value == null) { if (this.value == null) {
return 0; return 0;
} }
return this.value.toLowerCase().hashCode(); return this.value.hashCode();
} }
} }

View File

@ -94,7 +94,7 @@ public class ReflectionUtils {
* @return RefClass object * @return RefClass object
* @throws RuntimeException if no class found * @throws RuntimeException if no class found
*/ */
public static RefClass getRefClass(final String... classes) { public static RefClass getRefClass(final String... classes) throws RuntimeException {
for (String className : classes) { for (String className : classes) {
try { try {
className = className.replace("{cb}", preClassB).replace("{nms}", preClassM).replace("{nm}", "net.minecraft"); className = className.replace("{cb}", preClassB).replace("{nms}", preClassM).replace("{nm}", "net.minecraft");