random fix:

This commit is contained in:
2025-12-13 18:44:50 +01:00
parent 7fc86a804a
commit a9c14c3adf

View File

@@ -34,13 +34,13 @@ namespace KCM.LoadSaveOverrides
if (string.IsNullOrWhiteSpace(player.steamId)) if (string.IsNullOrWhiteSpace(player.steamId))
{ {
Main.helper.Log($"Skipping save for player with missing steamId (name={player.name ?? \"\"})"); Main.helper.Log($"Skipping save for player with missing steamId (name={player.name ?? string.Empty})");
continue; continue;
} }
if (player.inst == null) if (player.inst == null)
{ {
Main.helper.Log($"Skipping save for player {player.name ?? \"\"} ({player.steamId}) because Player.inst is null"); Main.helper.Log($"Skipping save for player {player.name ?? string.Empty} ({player.steamId}) because Player.inst is null");
continue; continue;
} }
@@ -54,7 +54,7 @@ namespace KCM.LoadSaveOverrides
} }
catch (Exception ex) catch (Exception ex)
{ {
Main.helper.Log($"Error packing player data for save (steamId={player?.steamId ?? \"\"}, name={player?.name ?? \"\"})"); Main.helper.Log($"Error packing player data for save (steamId={player?.steamId ?? string.Empty}, name={player?.name ?? string.Empty})");
Main.helper.Log(ex.ToString()); Main.helper.Log(ex.ToString());
} }
} }