File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
common/src/main/java/net/bettercombat Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Added new presets:
13
13
14
14
Other changes:
15
15
- (1.20.2) Fix packet handling issues preventing multiplayer, and rejoining a world in single player
16
+ - Fix corrupted fallback config causing crash
16
17
- Keep order of ` player_relations ` in server config
17
18
- Add Japanese translation, thanks to SAGA23456 #289
18
19
- Update Russian translation, thanks to mpustovoi #288
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ public void onInitialize() {
53
53
54
54
private void loadFallbackConfig () {
55
55
fallbackConfig .load ();
56
+ if (fallbackConfig .value == null ) {
57
+ // Most likely corrupt config
58
+ fallbackConfig .value = FallbackConfig .createDefault ();
59
+ }
56
60
if (fallbackConfig .value .schema_version < fallbackDefault .schema_version ) {
57
61
fallbackConfig .value = FallbackConfig .migrate (fallbackConfig .value , FallbackConfig .createDefault ());
58
62
}
You can’t perform that action at this time.
0 commit comments