Clothing/item ECS & cleanup (#9706)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.Item;
|
||||
using Content.Shared.Clothing.Components;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Inventory;
|
||||
@@ -32,10 +33,6 @@ public partial class InventorySystem
|
||||
return false;
|
||||
}
|
||||
|
||||
// If this doesn't have an item component, then we can't do anything with it.
|
||||
if (!HasComp<SharedItemComponent>(item))
|
||||
return DeleteItem();
|
||||
|
||||
// We finally try to equip the item, otherwise we delete it.
|
||||
return TryEquip(uid, item, slot, silent, force) || DeleteItem();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user