ActSystem and Destruction Threshold Behaviors use EntityUid.

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 12:06:00 +01:00
parent c5fda6daca
commit 5cec5c421c
14 changed files with 44 additions and 42 deletions

View File

@@ -10,11 +10,11 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
[DataDefinition]
public class DumpCanisterBehavior: IThresholdBehavior
{
public void Execute(IEntity owner, DestructibleSystem system)
public void Execute(EntityUid owner, DestructibleSystem system, IEntityManager entityManager)
{
var gasCanisterSystem = EntitySystem.Get<GasCanisterSystem>();
var gasCanisterSystem = entityManager.EntitySysManager.GetEntitySystem<GasCanisterSystem>();
gasCanisterSystem.PurgeContents(owner.Uid);
gasCanisterSystem.PurgeContents(owner);
}
}
}