Content ecs containers (#22484)
This commit is contained in:
@@ -384,7 +384,7 @@ namespace Content.Shared.Cuffs
|
||||
var container = cuffable.Container;
|
||||
var entity = container.ContainedEntities[^1];
|
||||
|
||||
container.Remove(entity);
|
||||
_container.Remove(entity, container);
|
||||
_transform.SetWorldPosition(entity, _transform.GetWorldPosition(owner));
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@ namespace Content.Shared.Cuffs
|
||||
// Success!
|
||||
_hands.TryDrop(user, handcuff);
|
||||
|
||||
component.Container.Insert(handcuff);
|
||||
_container.Insert(handcuff, component.Container);
|
||||
UpdateHeldItems(target, handcuff, component);
|
||||
return true;
|
||||
}
|
||||
@@ -634,7 +634,7 @@ namespace Content.Shared.Cuffs
|
||||
|
||||
_audio.PlayPredicted(cuff.EndUncuffSound, target, user);
|
||||
|
||||
cuffable.Container.Remove(cuffsToRemove);
|
||||
_container.Remove(cuffsToRemove, cuffable.Container);
|
||||
|
||||
if (_net.IsServer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user