From f33a17faf75dd914b5d7d7fdfac9220c87110b0c Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 9 Mar 2021 21:06:09 +0000 Subject: [PATCH] Fix creating worlds with "invalid" names (Fixes #5331) --- Spigot-API-Patches/Implement-Keyed-on-World.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-API-Patches/Implement-Keyed-on-World.patch b/Spigot-API-Patches/Implement-Keyed-on-World.patch index 41f5b7481..0942b80ee 100644 --- a/Spigot-API-Patches/Implement-Keyed-on-World.patch +++ b/Spigot-API-Patches/Implement-Keyed-on-World.patch @@ -98,7 +98,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - throw new IllegalArgumentException("World name cannot be null"); - } + // Paper start -+ this(name, NamespacedKey.minecraft(name)); ++ this(name, NamespacedKey.minecraft(name.toLowerCase(java.util.Locale.ENGLISH))); + } - this.name = name;