Checks if a buckled entity is terminating before reparent (#13202)

This commit is contained in:
keronshb
2022-12-30 12:22:06 -05:00
committed by GitHub
parent e1b1541c56
commit ca40c0fce2

View File

@@ -338,7 +338,7 @@ public sealed partial class BuckleSystem
var xform = Transform(buckleId);
var oldBuckledXform = Transform(oldBuckledTo.Owner);
if (xform.ParentUid == oldBuckledXform.Owner)
if (xform.ParentUid == oldBuckledXform.Owner && !Terminating(xform.ParentUid))
{
_containers.AttachParentToContainerOrGrid(xform);
xform.WorldRotation = oldBuckledXform.WorldRotation;