Fix stack overflow on rigged power cell explosion. (#8382)
Remove the set to cell charge from explosion code. I assume the cell won't see much use since it's about to be deleted anyways.
This commit is contained in:
committed by
GitHub
parent
cf67baee7d
commit
9385786273
@@ -85,7 +85,6 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
|
||||
return;
|
||||
|
||||
var radius = MathF.Min(5, MathF.Ceiling(MathF.Sqrt(battery.CurrentCharge) / 30));
|
||||
battery.CurrentCharge = 0;
|
||||
|
||||
_explosionSystem.TriggerExplosive(uid, radius: radius);
|
||||
QueueDel(uid);
|
||||
|
||||
Reference in New Issue
Block a user