mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
fix config client-side consent screen
This commit is contained in:
parent
25588d5f70
commit
4003ee9f3a
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user