diff options
| author | ilotterytea <iltsu@alright.party> | 2024-10-27 22:01:05 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-10-27 22:01:05 +0500 |
| commit | c0c5eac2c2ca11961c81262faeffc1c8c0615ae7 (patch) | |
| tree | c9202f2a2868c41bbdbf518c6a60d8c3ec931b87 /core | |
| parent | b41647844b5c0a6174716b3e88beb6a64d795612 (diff) | |
upd: don't throw RuntimeException on save loading error
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/player/Savegame.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/kz/ilotterytea/maxon/player/Savegame.java b/core/src/kz/ilotterytea/maxon/player/Savegame.java index 3a8ac3f..15f69f2 100644 --- a/core/src/kz/ilotterytea/maxon/player/Savegame.java +++ b/core/src/kz/ilotterytea/maxon/player/Savegame.java @@ -64,7 +64,8 @@ public class Savegame implements Serializable { return savegame; } catch (IOException e) { - throw new RuntimeException("Failed to load savegame", e); + logger.error("Failed to load a save: {}", e.toString()); + return new Savegame(); } } |
