Remove redundant setting initialization (done in SaveHandler.load)

This commit is contained in:
Tobias Berger 2021-09-30 21:27:31 +02:00
parent 569f6db40b
commit f2c260ac57

View file

@ -63,14 +63,6 @@ export class SharkGame extends StaticClass {
static readonly SaveHandler = SaveHandler;
static init(): void {
Settings.settings.update((settings) => {
for (const settingsCategory of Object.values(settings)) {
for (const setting of Object.values(settingsCategory)) {
setting.current = setting.default;
}
}
return settings;
});
Log.init();
SaveHandler.load(this);