Clothing/item ECS & cleanup (#9706)
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Content.Shared.Disposal
|
||||
var otherBody = args.BodyB.Owner;
|
||||
|
||||
// Items dropped shouldn't collide but items thrown should
|
||||
if (EntityManager.HasComponent<SharedItemComponent>(otherBody) &&
|
||||
if (EntityManager.HasComponent<ItemComponent>(otherBody) &&
|
||||
!EntityManager.HasComponent<ThrownItemComponent>(otherBody))
|
||||
{
|
||||
args.Cancel();
|
||||
@@ -60,7 +60,7 @@ namespace Content.Shared.Disposal
|
||||
return false;
|
||||
|
||||
// TODO: Probably just need a disposable tag.
|
||||
if (!EntityManager.TryGetComponent(entity, out SharedItemComponent? storable) &&
|
||||
if (!EntityManager.TryGetComponent(entity, out ItemComponent? storable) &&
|
||||
!EntityManager.HasComponent<SharedBodyComponent>(entity))
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user