@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
||||
+++ b/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
||||
@@ -10,8 +10,14 @@
|
||||
@@ -13,8 +13,14 @@
|
||||
import net.minecraft.world.level.EnumGamemode;
|
||||
import net.minecraft.world.level.levelgen.GeneratorSettings;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
public final boolean onlineMode = this.get("online-mode", true);
|
||||
public final boolean preventProxyConnections = this.get("prevent-proxy-connections", false);
|
||||
public final String serverIp = this.get("server-ip", "");
|
||||
@@ -67,8 +73,10 @@
|
||||
@@ -71,8 +77,10 @@
|
||||
@Nullable
|
||||
private GeneratorSettings worldGenSettings;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
this.difficulty = (EnumDifficulty) this.get("difficulty", dispatchNumberOrString(EnumDifficulty::byId, EnumDifficulty::byName), EnumDifficulty::getKey, EnumDifficulty.EASY);
|
||||
this.gamemode = (EnumGamemode) this.get("gamemode", dispatchNumberOrString(EnumGamemode::byId, EnumGamemode::byName), EnumGamemode::getName, EnumGamemode.SURVIVAL);
|
||||
this.levelName = this.get("level-name", "world");
|
||||
@@ -112,13 +120,15 @@
|
||||
this.whiteList = this.getMutable("white-list", false);
|
||||
@@ -121,13 +129,15 @@
|
||||
}, "default"));
|
||||
}
|
||||
|
||||
- public static DedicatedServerProperties fromFile(Path path) {
|
||||
@@ -48,3 +48,24 @@
|
||||
|
||||
dedicatedserverproperties.getWorldGenSettings(iregistrycustom);
|
||||
return dedicatedserverproperties;
|
||||
@@ -141,8 +151,10 @@
|
||||
return this.worldGenSettings;
|
||||
}
|
||||
|
||||
- public static record a(String a, JsonObject b, boolean c, String d) {
|
||||
+ // CraftBukkit start - decompile error
|
||||
+ public static record a(String levelSeed, JsonObject generatorSettings, boolean generateStructures, String levelType) {
|
||||
|
||||
+ /*
|
||||
private final String levelSeed;
|
||||
private final JsonObject generatorSettings;
|
||||
private final boolean generateStructures;
|
||||
@@ -154,6 +166,8 @@
|
||||
this.generateStructures = flag;
|
||||
this.levelType = s1;
|
||||
}
|
||||
+ */
|
||||
+ // CraftBukkit end
|
||||
|
||||
public String levelSeed() {
|
||||
return this.levelSeed;
|
||||
|
||||
Reference in New Issue
Block a user