mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator)
By: md-5 <md_5@bigpond.com>
This commit is contained in:
parent
ef2f82b9d2
commit
b76a689292
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…
Reference in a new issue