diff --git a/src/main/java/me/hsgamer/bettergui/util/CaseInsensitivePathString.java b/src/main/java/me/hsgamer/bettergui/util/CaseInsensitivePathString.java index 137ca844..fa8a5804 100644 --- a/src/main/java/me/hsgamer/bettergui/util/CaseInsensitivePathString.java +++ b/src/main/java/me/hsgamer/bettergui/util/CaseInsensitivePathString.java @@ -32,10 +32,10 @@ public boolean equals(Object o) { @Override public int hashCode() { String[] thisPath = this.pathString.getPath(); - String[] lowerPath = new String[thisPath.length]; + Object[] lowerPath = new String[thisPath.length]; for (int i = 0; i < thisPath.length; i++) { lowerPath[i] = thisPath[i].toLowerCase(); } - return Objects.hash((Object) lowerPath); + return Objects.hash(lowerPath); } }