Skip to content

Commit

Permalink
no forcing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 committed Mar 23, 2024
1 parent f77ac47 commit 9d7c1f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1537,12 +1537,12 @@ public bool SwapPositions(Entity<TransformComponent?> entity1, Entity<TransformC
SetParent(entity1, _mapManager.GetMapEntityId(pos2.MapId));
SetWorldPosition(entity1.Comp, pos2.Position);
if (container2 != null)
_container.Insert(entity1, container2, force: true);
_container.Insert(entity1, container2);

SetParent(entity2, _mapManager.GetMapEntityId(pos1.MapId));
SetWorldPosition(entity2.Comp, pos1.Position);
if (container1 != null)
_container.Insert(entity2, container1, force: true);
_container.Insert(entity2, container1);

return true;
}
Expand Down

0 comments on commit 9d7c1f0

Please sign in to comment.