fix config client-side consent screen

This commit is contained in:
creeper123123321 2020-10-03 17:58:16 -03:00 committed by creeper123123321
parent 25588d5f70
commit 4003ee9f3a

View File

@ -130,12 +130,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().asString());
}
MinecraftClient.getInstance().openScreen(this);
},
new TranslatableText("gui.enable_client_side.question"),
new TranslatableText("gui.enable_client_side.warning"),