From 3acdc1f1b9b48ca9fd9ffc1b04d47663d3671394 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 20 May 2019 19:47:08 +1000 Subject: [PATCH] Fix duplicate lowercasing in NamespacedKey By: md_5 --- paper-api/src/main/java/org/bukkit/NamespacedKey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/NamespacedKey.java b/paper-api/src/main/java/org/bukkit/NamespacedKey.java index ffebffd8bd..5795da583e 100644 --- a/paper-api/src/main/java/org/bukkit/NamespacedKey.java +++ b/paper-api/src/main/java/org/bukkit/NamespacedKey.java @@ -72,7 +72,7 @@ public final class NamespacedKey { Preconditions.checkArgument(key != null, "Key cannot be null"); this.namespace = plugin.getName().toLowerCase(Locale.ROOT); - this.key = key.toLowerCase().toLowerCase(Locale.ROOT); + this.key = key.toLowerCase(Locale.ROOT); // Check validity after normalization Preconditions.checkArgument(VALID_NAMESPACE.matcher(this.namespace).matches(), "Invalid namespace. Must be [a-z0-9._-]: %s", this.namespace);