mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
Fix creating worlds with "invalid" names (Fixes #5331)
This commit is contained in:
parent
e4d8a6279c
commit
eb11845f87
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ index 3c50a10fda033c139993ed5465a92f95d5b10c17..064497506e6a5ab89ca43b99968ca79d
|
|||
|
||||
/**
|
||||
diff --git a/src/main/java/org/bukkit/WorldCreator.java b/src/main/java/org/bukkit/WorldCreator.java
|
||||
index 6e6945dd4c770be04ec09da3958fae751717527a..3802bf39c2b8330ab64f90f91c88741500caaa64 100644
|
||||
index 6e6945dd4c770be04ec09da3958fae751717527a..1d93a6c42d6c93ffd50c6054e74f3ff75d745b58 100644
|
||||
--- a/src/main/java/org/bukkit/WorldCreator.java
|
||||
+++ b/src/main/java/org/bukkit/WorldCreator.java
|
||||
@@ -11,6 +11,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
@ -98,7 +98,7 @@ index 6e6945dd4c770be04ec09da3958fae751717527a..3802bf39c2b8330ab64f90f91c887415
|
|||
- 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;
|
||||
|
|
Loading…
Reference in a new issue