24 lines
616 B
C#
24 lines
616 B
C#
using Content.Server.Power.Components;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.Power.EntitySystems
|
|
{
|
|
public sealed class PowerReceiverSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<PowerReceiverComponent, PhysicsBodyTypeChangedEvent>(BodyTypeChanged);
|
|
}
|
|
|
|
private static void BodyTypeChanged(
|
|
EntityUid uid,
|
|
PowerReceiverComponent component,
|
|
PhysicsBodyTypeChangedEvent args)
|
|
{
|
|
component.AnchorUpdate();
|
|
}
|
|
}
|
|
}
|