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