Better JSON null validation / Disable mods on startup crash

This commit is contained in:
Anuken
2021-02-19 13:28:31 -05:00
parent b46a5c0bda
commit fa7697fc40
12 changed files with 93 additions and 16 deletions

View File

@@ -106,11 +106,6 @@ public class ModsDialog extends BaseDialog{
}
});
shown(() -> Core.app.post(() -> {
Core.settings.getBoolOnce("modsalpha", () -> {
ui.showText("@mods", "@mods.alphainfo");
});
}));
}
void modError(Throwable error){

View File

@@ -327,6 +327,10 @@ public class SettingsMenuDialog extends SettingsDialog{
game.checkPref("buildautopause", false);
}
if(!ios){
game.checkPref("modcrashdisable", true);
}
if(steam){
game.sliderPref("playerlimit", 16, 2, 32, i -> {
platform.updateLobby();