Skip to content

Commit

Permalink
Fix last few mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugOk committed Sep 27, 2023
1 parent d032383 commit b80d40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void OnEquipped(EntityUid uid, FelinidComponent component, DidEquipHandE
component.EatActionTarget = args.Equipped;

component.EatAction = Spawn("ActionEatMouse");
_actionsSystem.AddAction(uid, component.EatAction.Value, null);
_actionsSystem.AddAction(uid, ref component.EatAction, null);
}

private void OnUnequipped(EntityUid uid, FelinidComponent component, DidUnequipHandEvent args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public bool TryInsert(EntityUid storageUid, EntityUid toInsert, PseudoItemCompon
var item = EnsureComp<ItemComponent>(toInsert);
_itemSystem.SetSize(toInsert, component.Size, item);

if (!_storageSystem.Insert(storageUid, toInsert, storage))
if (!_storageSystem.Insert(storageUid, toInsert, out _, null, storage))
{
component.Active = false;
RemComp<ItemComponent>(toInsert);
Expand All @@ -142,7 +142,7 @@ private void StartInsertDoAfter(EntityUid inserter, EntityUid toInsert, EntityUi
return;

var ev = new PseudoItemInsertDoAfterEvent();
var args = new DoAfterArgs(inserter, 5f, ev, toInsert, target: toInsert, used: storageEntity)
var args = new DoAfterArgs(EntityManager, inserter, 5f, ev, toInsert, target: toInsert, used: storageEntity)
{
BreakOnTargetMove = true,
BreakOnUserMove = true,
Expand Down

0 comments on commit b80d40a

Please sign in to comment.