mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-12-20 16:07:36 +01:00
fix config client-side consent screen
This commit is contained in:
parent
326310d5c9
commit
9ba05e0fbe
@ -132,12 +132,12 @@ public class ViaConfigScreen extends Screen {
|
|||||||
if (!ViaFabric.config.isClientSideEnabled()) {
|
if (!ViaFabric.config.isClientSideEnabled()) {
|
||||||
MinecraftClient.getInstance().openScreen(new ConfirmScreen(
|
MinecraftClient.getInstance().openScreen(new ConfirmScreen(
|
||||||
answer -> {
|
answer -> {
|
||||||
MinecraftClient.getInstance().openScreen(this);
|
|
||||||
if (answer) {
|
if (answer) {
|
||||||
ViaFabric.config.setClientSideEnabled(true);
|
ViaFabric.config.setClientSideEnabled(true);
|
||||||
ViaFabric.config.saveConfig();
|
ViaFabric.config.saveConfig();
|
||||||
widget.setMessage(getClientSideText());
|
widget.setMessage(getClientSideText());
|
||||||
}
|
}
|
||||||
|
MinecraftClient.getInstance().openScreen(this);
|
||||||
},
|
},
|
||||||
new TranslatableText("gui.enable_client_side.question"),
|
new TranslatableText("gui.enable_client_side.question"),
|
||||||
new TranslatableText("gui.enable_client_side.warning"),
|
new TranslatableText("gui.enable_client_side.warning"),
|
||||||
|
Loading…
Reference in New Issue
Block a user