Fix explosion log crash

This commit is contained in:
Vera Aguilera Puerto
2021-12-09 12:54:44 +01:00
parent 8b09d55b10
commit deffd48905

View File

@@ -356,7 +356,7 @@ namespace Content.Server.Explosion.EntitySystems
else else
{ {
_logSystem.Add(LogType.Explosion, LogImpact.High, _logSystem.Add(LogType.Explosion, LogImpact.High,
$"{entity.Value} caused {entity.Value} to explode at {text}"); $"{user.Value} caused {entity.Value} to explode at {text}");
} }
var maxRange = MathHelper.Max(devastationRange, heavyImpactRange, lightImpactRange, 0); var maxRange = MathHelper.Max(devastationRange, heavyImpactRange, lightImpactRange, 0);