diff --git a/viafabric-mc114/src/main/java/com/viaversion/fabric/mc114/gui/ViaConfigScreen.java b/viafabric-mc114/src/main/java/com/viaversion/fabric/mc114/gui/ViaConfigScreen.java index 3dab0ddb..b7dbe936 100644 --- a/viafabric-mc114/src/main/java/com/viaversion/fabric/mc114/gui/ViaConfigScreen.java +++ b/viafabric-mc114/src/main/java/com/viaversion/fabric/mc114/gui/ViaConfigScreen.java @@ -81,7 +81,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -91,7 +91,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText().asString()); } MinecraftClient.getInstance().openScreen(this); @@ -103,14 +103,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText().asString()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -131,7 +131,7 @@ private TranslatableText getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText().asString()); } diff --git a/viafabric-mc115/src/main/java/com/viaversion/fabric/mc115/gui/ViaConfigScreen.java b/viafabric-mc115/src/main/java/com/viaversion/fabric/mc115/gui/ViaConfigScreen.java index a810b6eb..43a67415 100644 --- a/viafabric-mc115/src/main/java/com/viaversion/fabric/mc115/gui/ViaConfigScreen.java +++ b/viafabric-mc115/src/main/java/com/viaversion/fabric/mc115/gui/ViaConfigScreen.java @@ -81,7 +81,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -91,7 +91,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText().asString()); } MinecraftClient.getInstance().openScreen(this); @@ -103,14 +103,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText().asString()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -131,7 +131,7 @@ private TranslatableText getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText().asString()); } diff --git a/viafabric-mc116/src/main/java/com/viaversion/fabric/mc116/gui/ViaConfigScreen.java b/viafabric-mc116/src/main/java/com/viaversion/fabric/mc116/gui/ViaConfigScreen.java index 586c837c..d3eab944 100644 --- a/viafabric-mc116/src/main/java/com/viaversion/fabric/mc116/gui/ViaConfigScreen.java +++ b/viafabric-mc116/src/main/java/com/viaversion/fabric/mc116/gui/ViaConfigScreen.java @@ -83,7 +83,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -93,7 +93,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText()); } MinecraftClient.getInstance().openScreen(this); @@ -105,14 +105,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -133,7 +133,7 @@ private TranslatableText getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText()); } diff --git a/viafabric-mc117/src/main/java/com/viaversion/fabric/mc117/gui/ViaConfigScreen.java b/viafabric-mc117/src/main/java/com/viaversion/fabric/mc117/gui/ViaConfigScreen.java index 0d887cdc..69d06f12 100644 --- a/viafabric-mc117/src/main/java/com/viaversion/fabric/mc117/gui/ViaConfigScreen.java +++ b/viafabric-mc117/src/main/java/com/viaversion/fabric/mc117/gui/ViaConfigScreen.java @@ -83,7 +83,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -93,7 +93,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText()); } MinecraftClient.getInstance().setScreen(this); @@ -105,14 +105,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -133,7 +133,7 @@ private TranslatableText getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText()); } diff --git a/viafabric-mc118/src/main/java/com/viaversion/fabric/mc118/gui/ViaConfigScreen.java b/viafabric-mc118/src/main/java/com/viaversion/fabric/mc118/gui/ViaConfigScreen.java index 958b31cb..ab32583b 100644 --- a/viafabric-mc118/src/main/java/com/viaversion/fabric/mc118/gui/ViaConfigScreen.java +++ b/viafabric-mc118/src/main/java/com/viaversion/fabric/mc118/gui/ViaConfigScreen.java @@ -83,7 +83,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -93,7 +93,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText()); } MinecraftClient.getInstance().setScreen(this); @@ -105,14 +105,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -133,7 +133,7 @@ private TranslatableText getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText()); } diff --git a/viafabric-mc119/src/main/java/com/viaversion/fabric/mc119/gui/ViaConfigScreen.java b/viafabric-mc119/src/main/java/com/viaversion/fabric/mc119/gui/ViaConfigScreen.java index 20e308e0..7ebc48b7 100644 --- a/viafabric-mc119/src/main/java/com/viaversion/fabric/mc119/gui/ViaConfigScreen.java +++ b/viafabric-mc119/src/main/java/com/viaversion/fabric/mc119/gui/ViaConfigScreen.java @@ -87,7 +87,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -97,7 +97,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText()); } MinecraftClient.getInstance().setScreen(this); @@ -109,14 +109,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -137,7 +137,7 @@ private Text getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText()); } diff --git a/viafabric-mc120/src/main/java/com/viaversion/fabric/mc120/gui/ViaConfigScreen.java b/viafabric-mc120/src/main/java/com/viaversion/fabric/mc120/gui/ViaConfigScreen.java index 6592459f..2288e624 100644 --- a/viafabric-mc120/src/main/java/com/viaversion/fabric/mc120/gui/ViaConfigScreen.java +++ b/viafabric-mc120/src/main/java/com/viaversion/fabric/mc120/gui/ViaConfigScreen.java @@ -87,7 +87,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -97,7 +97,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getClientSideText()); } MinecraftClient.getInstance().setScreen(this); @@ -109,14 +109,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.setMessage(getClientSideText()); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } @Override @@ -137,7 +137,7 @@ private Text getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.setMessage(getHideViaButtonText()); } diff --git a/viafabric-mc18/src/main/java/com/viaversion/fabric/mc18/gui/ViaConfigScreen.java b/viafabric-mc18/src/main/java/com/viaversion/fabric/mc18/gui/ViaConfigScreen.java index 5907bd94..0391d5ce 100644 --- a/viafabric-mc18/src/main/java/com/viaversion/fabric/mc18/gui/ViaConfigScreen.java +++ b/viafabric-mc18/src/main/java/com/viaversion/fabric/mc18/gui/ViaConfigScreen.java @@ -83,7 +83,7 @@ private void onChangeVersionField(String text) { int finalNewVersion = newVersion; if (latestProtocolSave == null) latestProtocolSave = CompletableFuture.completedFuture(null); ViaFabric.config.setClientSideVersion(finalNewVersion); - latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::saveConfig, ViaFabric.ASYNC_EXECUTOR); + latestProtocolSave = latestProtocolSave.thenRunAsync(ViaFabric.config::save, ViaFabric.ASYNC_EXECUTOR); } private void onClickClientSide(ButtonWidget widget) { @@ -93,7 +93,7 @@ private void onClickClientSide(ButtonWidget widget) { if (answer) { ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideVersion(-2); // AUTO - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.message = getClientSideText().asUnformattedString(); } MinecraftClient.getInstance().setScreen(this); @@ -106,14 +106,14 @@ private void onClickClientSide(ButtonWidget widget) { )); } else { ViaFabric.config.setClientSideEnabled(false); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } widget.message = getClientSideText().asUnformattedString(); } @Override public void removed() { - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); } private TranslatableText getClientSideText() { @@ -129,7 +129,7 @@ private TranslatableText getHideViaButtonText() { private void onHideViaButton(ButtonWidget widget) { ViaFabric.config.setHideButton(!ViaFabric.config.isHideButton()); - ViaFabric.config.saveConfig(); + ViaFabric.config.save(); widget.message = getHideViaButtonText().asUnformattedString(); }