@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/server/DedicatedServerSettings.java
|
||||
+++ b/net/minecraft/server/DedicatedServerSettings.java
|
||||
@@ -2,14 +2,21 @@
|
||||
|
||||
--- a/net/minecraft/server/dedicated/DedicatedServerSettings.java
|
||||
+++ b/net/minecraft/server/dedicated/DedicatedServerSettings.java
|
||||
@@ -4,14 +4,21 @@
|
||||
import java.util.function.UnaryOperator;
|
||||
import net.minecraft.core.IRegistryCustom;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import java.io.File;
|
||||
@@ -11,12 +11,12 @@
|
||||
+
|
||||
public class DedicatedServerSettings {
|
||||
|
||||
private final java.nio.file.Path path;
|
||||
private final Path path;
|
||||
private DedicatedServerProperties properties;
|
||||
|
||||
- public DedicatedServerSettings(IRegistryCustom iregistrycustom, java.nio.file.Path java_nio_file_path) {
|
||||
- this.path = java_nio_file_path;
|
||||
- this.properties = DedicatedServerProperties.load(iregistrycustom, java_nio_file_path);
|
||||
- public DedicatedServerSettings(IRegistryCustom iregistrycustom, Path path) {
|
||||
- this.path = path;
|
||||
- this.properties = DedicatedServerProperties.load(iregistrycustom, path);
|
||||
+ // CraftBukkit start
|
||||
+ public DedicatedServerSettings(IRegistryCustom iregistrycustom, OptionSet optionset) {
|
||||
+ this.path = ((File) optionset.valueOf("config")).toPath();
|
||||
|
||||
Reference in New Issue
Block a user