mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-06-09 10:06:34 +02:00
Fix SetCoordinates causing unexpected reparenting (#6533)
* Don't check for grid traversal when we already know the new parent * Actually, we shouldn't ever need to check for grid traversal in SetCoordinates
This commit is contained in:
@@ -635,7 +635,8 @@ public abstract partial class SharedTransformSystem
|
||||
if (xform.ParentUid == xform.MapUid)
|
||||
DebugTools.Assert(xform.GridUid == null || xform.GridUid == uid || xform.GridUid == xform.MapUid);
|
||||
#endif
|
||||
RaiseMoveEvent(entity, oldParentUid, oldPosition, oldRotation, oldMap);
|
||||
// No need to check for grid traversal since we've already handled it
|
||||
RaiseMoveEvent(entity, oldParentUid, oldPosition, oldRotation, oldMap, checkTraversal: false);
|
||||
}
|
||||
|
||||
public void SetCoordinates(
|
||||
|
||||
Reference in New Issue
Block a user