1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 02:34:30 +01:00

Fix creating worlds with "invalid" names (Fixes )

This commit is contained in:
Shane Freeder 2021-03-09 21:06:09 +00:00
parent a7ed5db4ec
commit f33a17faf7

View file

@ -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;