From cc911c7c809e48d8dcbbf3a14a142e694831957a Mon Sep 17 00:00:00 2001 From: Josiah Glosson Date: Tue, 2 Jul 2024 11:16:08 -0500 Subject: [PATCH] Missed a few spots --- .../io/github/gaming32/worldhost/config/WorldHostConfig.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/io/github/gaming32/worldhost/config/WorldHostConfig.java b/src/main/java/io/github/gaming32/worldhost/config/WorldHostConfig.java index 8c8df1b..87a1189 100644 --- a/src/main/java/io/github/gaming32/worldhost/config/WorldHostConfig.java +++ b/src/main/java/io/github/gaming32/worldhost/config/WorldHostConfig.java @@ -19,7 +19,6 @@ public class WorldHostConfig { public static final String DEFAULT_SERVER_IP = "world-host.jemnetworks.com"; private String serverIp = DEFAULT_SERVER_IP; - private OnlineStatusLocation onlineStatusLocation = OnlineStatusLocation.RIGHT; private boolean enableFriends = true; private boolean enableReconnectionToasts = false; @@ -39,7 +38,6 @@ public void read(JsonReader reader) throws IOException { while (reader.hasNext()) { final String key; switch (key = reader.nextName()) { - case "serverIp" -> serverIp = reader.nextString(); //noinspection DefaultNotLastCaseInSwitch default -> { final ConfigOption option = ConfigOptions.OPTIONS.get(key); @@ -94,7 +92,6 @@ public void readFriends(JsonReader reader) throws IOException { public void write(JsonWriter writer) throws IOException { writer.beginObject(); - writer.name("serverIp").value(serverIp); for (final var option : ConfigOptions.OPTIONS.values()) { writer.name(option.getName()); option.writeValue(this, writer);