flewkey
/
mc.2a03.party
Archived
1
0
Fork 0

Forgot to remove this

master
flewkey 4 years ago
parent 89f42f6d2c
commit 29f6c16bcd
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
  1. 2
      patches/net/minecraft/server/MinecraftServer.patch
  2. 2
      src/party/_2a03/server/Config.java

@ -30,7 +30,7 @@
dedicatedserver.func_213208_c(optionset.valueOf(optionspec11));
boolean flag = !optionset.has(optionspec) && !optionset.valuesOf(optionspec12).contains("nogui");
- if (flag && !GraphicsEnvironment.isHeadless()) {
+ Config.initConfig(field_71305_c); //Patched
+ Config.initConfig(field_71305_c); //Patched
+ Config.loadConfig(); //Patched
+ if (flag && !GraphicsEnvironment.isHeadless() && false) { //Patched
dedicatedserver.func_120011_ar();

@ -6,7 +6,6 @@ import java.io.FileWriter;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Map;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.dimension.DimensionType;
import net.minecraft.world.ServerWorld;
import org.json.JSONObject;
@ -21,7 +20,6 @@ public class Config {
private static JSONObject json;
private static final Logger logger = LogManager.getLogger();
private static Map<DimensionType, ServerWorld> worlds = Maps.newIdentityHashMap();
public static MinecraftServer server;
public static void initConfig(Map<DimensionType, ServerWorld> p_worlds) {
worlds = p_worlds;