ActSystem and Destruction Threshold Behaviors use EntityUid.
This commit is contained in:
@@ -4,6 +4,7 @@ using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Destructible;
|
||||
using Content.Shared.Acts;
|
||||
|
||||
namespace Content.Server.Construction.Completions
|
||||
{
|
||||
@@ -13,11 +14,7 @@ namespace Content.Server.Construction.Completions
|
||||
{
|
||||
public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager)
|
||||
{
|
||||
if (!entityManager.TryGetEntity(uid, out var entity))
|
||||
return; // This should never happen, but.
|
||||
|
||||
var destructibleSystem = EntitySystem.Get<DestructibleSystem>();
|
||||
destructibleSystem.ActSystem.HandleDestruction(entity);
|
||||
entityManager.EntitySysManager.GetEntitySystem<ActSystem>().HandleDestruction(uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user