fix: world type creation
This commit is contained in:
parent
e17bd28fef
commit
b660654c63
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ class WorldManager(private val instance: RunnerDragon) {
|
||||||
|
|
||||||
fun createWorld(name: String, environment: World.Environment, structures: Boolean): World {
|
fun createWorld(name: String, environment: World.Environment, structures: Boolean): World {
|
||||||
val creator = WorldCreator(name)
|
val creator = WorldCreator(name)
|
||||||
creator.environment(World.Environment.NORMAL)
|
creator.environment(environment)
|
||||||
creator.generateStructures(true)
|
creator.generateStructures(structures)
|
||||||
creator.type(WorldType.NORMAL)
|
creator.type(WorldType.NORMAL)
|
||||||
return Bukkit.createWorld(creator)!!
|
return Bukkit.createWorld(creator)!!
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue