Fix error during DB insert for explosion damage logs (#14265)

This commit is contained in:
Chief-Engineer
2023-02-25 11:27:22 -06:00
committed by GitHub
parent 8e1e6303d7
commit 0d6f64e6d0

View File

@@ -396,7 +396,7 @@ public sealed partial class ExplosionSystem : EntitySystem
{
var damageStr = string.Join(", ", damage.DamageDict.Select(entry => $"{entry.Key}: {entry.Value}"));
_adminLogger.Add(LogType.Explosion, LogImpact.Medium,
$"Explosion caused {{{damageStr}}} to {ToPrettyString(uid):target} at {Transform(uid).Coordinates}");
$"Explosion caused [{damageStr}] to {ToPrettyString(uid):target} at {Transform(uid).Coordinates}");
}
}
else
@@ -407,7 +407,7 @@ public sealed partial class ExplosionSystem : EntitySystem
{
var damageStr = string.Join(", ", appliedDamage.DamageDict.Select(entry => $"{entry.Key}: {entry.Value}"));
_adminLogger.Add(LogType.Explosion, LogImpact.Medium,
$"Explosion caused {{{damageStr}}} to {ToPrettyString(uid):target} at {Transform(uid).Coordinates}");
$"Explosion caused [{damageStr}] to {ToPrettyString(uid):target} at {Transform(uid).Coordinates}");
}
}
}