Content ecs containers (#22484)
This commit is contained in:
@@ -190,7 +190,7 @@ public abstract partial class InventorySystem
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!slotContainer.Insert(itemUid))
|
||||
if (!_containerSystem.Insert(itemUid, slotContainer))
|
||||
{
|
||||
if(!silent && _gameTiming.IsFirstTimePredicted)
|
||||
_popup.PopupCursor(Loc.GetString("inventory-component-can-unequip-cannot"));
|
||||
@@ -374,7 +374,7 @@ public abstract partial class InventorySystem
|
||||
}
|
||||
}
|
||||
|
||||
if (!slotContainer.Remove(removedItem.Value, force: force))
|
||||
if (!_containerSystem.Remove(removedItem.Value, slotContainer, force: force))
|
||||
return false;
|
||||
|
||||
// TODO: Inventory needs a hot cleanup hoo boy
|
||||
|
||||
Reference in New Issue
Block a user