mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-16 00:46:17 +02:00
replace spaces in world key (touches #5397)
This commit is contained in:
parent
43a6e9e19c
commit
eac81f6960
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user