mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Changes to reflect new Environment enum
This commit is contained in:
@@ -192,14 +192,14 @@ public final class CraftServer implements Server {
|
||||
return "CraftServer{" + "serverName=" + serverName + "serverVersion=" + serverVersion + "protocolVersion=" + protocolVersion + '}';
|
||||
}
|
||||
|
||||
public World createWorld(String name, boolean nether) {
|
||||
public World createWorld(String name, World.Environment environment) {
|
||||
File folder = new File(name);
|
||||
|
||||
if ((folder.exists()) && (!folder.isDirectory())) {
|
||||
throw new IllegalArgumentException("File exists with the name '" + name + "' and isn't a folder");
|
||||
}
|
||||
|
||||
WorldServer internal = new WorldServer(console, new File("."), name, nether ? -1 : 0);
|
||||
WorldServer internal = new WorldServer(console, new File("."), name, environment == World.Environment.NETHER ? -1 : 0);
|
||||
|
||||
internal.a(new WorldManager(console, internal));
|
||||
internal.k = 1;
|
||||
|
Reference in New Issue
Block a user