fix config client-side consent screen

This commit is contained in:
creeper123123321 2020-10-03 17:58:16 -03:00
parent 326310d5c9
commit 9ba05e0fbe

View File

@ -132,12 +132,12 @@ public class ViaConfigScreen extends Screen {
if (!ViaFabric.config.isClientSideEnabled()) {
MinecraftClient.getInstance().openScreen(new ConfirmScreen(
answer -> {
MinecraftClient.getInstance().openScreen(this);
if (answer) {
ViaFabric.config.setClientSideEnabled(true);
ViaFabric.config.saveConfig();
widget.setMessage(getClientSideText());
}
MinecraftClient.getInstance().openScreen(this);
},
new TranslatableText("gui.enable_client_side.question"),
new TranslatableText("gui.enable_client_side.warning"),