mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
* why * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
20 lines
486 B
C#
20 lines
486 B
C#
using Content.Shared._DV.Traits.Assorted;
|
|
using Content.Shared.Cloning.Events;
|
|
|
|
namespace Content.Shared._DV.Medical;
|
|
|
|
public sealed class UncloneableSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<UncloneableComponent, CloningAttemptEvent>(OnCloningAttempt);
|
|
}
|
|
|
|
private void OnCloningAttempt(Entity<UncloneableComponent> ent, ref CloningAttemptEvent args)
|
|
{
|
|
args.Cancelled = true;
|
|
}
|
|
}
|