From d827d7d2309753c8bb04b4306d98c9b64604d7de Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 14 Dec 2014 11:55:14 +1100 Subject: [PATCH] We had this lowercase for a reason, but why...? We will need to ultimately have it case sensitive. --- .../com/intellectualcrafters/plot/object/StringWrapper.java | 4 ++-- .../com/intellectualcrafters/plot/util/ReflectionUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java index d36e6a7b7..0a29258cb 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java @@ -54,7 +54,7 @@ public class StringWrapper { return false; } 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) { return 0; } - return this.value.toLowerCase().hashCode(); + return this.value.hashCode(); } } diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java index 3a69b4f53..e6229b4b8 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java @@ -94,7 +94,7 @@ public class ReflectionUtils { * @return RefClass object * @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) { try { className = className.replace("{cb}", preClassB).replace("{nms}", preClassM).replace("{nm}", "net.minecraft");