mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator)
This commit is contained in:
parent
8aaa528763
commit
d8052a63ed
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue