mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-14 23:56:07 +09:00
fix: delta d bench was broken
This commit is contained in:
@@ -405,6 +405,7 @@ public class App implements ApplicationListener {
|
||||
initialiseConfig();
|
||||
readConfigJson();
|
||||
setGamepadButtonLabels();
|
||||
rectifyConfigs();
|
||||
|
||||
|
||||
ShaderProgram.pedantic = false;
|
||||
@@ -1710,4 +1711,14 @@ public class App implements ApplicationListener {
|
||||
public static void inputStrobed(TerrarumKeyboardEvent event) {
|
||||
currentScreen.inputStrobed(event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Corrects out-of-range config values
|
||||
*/
|
||||
private static void rectifyConfigs() {
|
||||
// force set min autosave interval to 5 minutes
|
||||
if (getConfigInt("autosaveinterval") < 5 * 60000) {
|
||||
setConfig("autosaveinterval", 5 * 60000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user