Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator)
Dieser Commit ist enthalten in:
Ursprung
8aaa528763
Commit
d8052a63ed
@ -513,7 +513,7 @@ public final class CraftServer implements Server {
|
|||||||
ChunkGenerator generator = creator.generator();
|
ChunkGenerator generator = creator.generator();
|
||||||
File folder = new File(name);
|
File folder = new File(name);
|
||||||
World world = getWorld(name);
|
World world = getWorld(name);
|
||||||
WorldType type = WorldType.a(creator.type().getName());
|
WorldType type = WorldType.a(creator.type().name());
|
||||||
|
|
||||||
if (world != null) {
|
if (world != null) {
|
||||||
return world;
|
return world;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren