mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-15 07:01:36 +08:00
Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator)
This commit is contained in:
parent
8aaa528763
commit
d8052a63ed
@ -513,7 +513,7 @@ public final class CraftServer implements Server {
|
||||
ChunkGenerator generator = creator.generator();
|
||||
File folder = new File(name);
|
||||
World world = getWorld(name);
|
||||
WorldType type = WorldType.a(creator.type().getName());
|
||||
WorldType type = WorldType.a(creator.type().name());
|
||||
|
||||
if (world != null) {
|
||||
return world;
|
||||
|
Loading…
Reference in New Issue
Block a user