Fix build (#2227)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user