This commit is contained in:
DrSmugleaf
2020-10-11 13:51:42 +02:00
committed by GitHub
parent 6e33c15fd7
commit e3322fb5ac

View File

@@ -84,7 +84,7 @@ namespace Content.Server.GameObjects.Components.Power.ApcNetComponents.PowerRece
public void OnUpdate(float frameTime) public void OnUpdate(float frameTime)
{ {
if (!Owner.TryGetComponent(out BatteryComponent battery)) if (Owner.Deleted || !Owner.TryGetComponent(out BatteryComponent battery))
{ {
return; return;
} }