From eac81f69607fa48a8f914c129fd5b41f3791729d Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Mon, 22 Mar 2021 01:10:13 +0000 Subject: [PATCH] replace spaces in world key (touches #5397) --- 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 0942b80ee..3f635ffb2 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.toLowerCase(java.util.Locale.ENGLISH))); ++ this(name, NamespacedKey.minecraft(name.toLowerCase(java.util.Locale.ENGLISH).replace(" ", "_"))); + } - this.name = name;