Skip to content

Commit

Permalink
Missed a few spots
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jul 2, 2024
1 parent 75071d3 commit cc911c7
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cc911c7

Please sign in to comment.