Fix parcel wrap transform parenting via SpawnAtPosition (#44679) (#6399)

ParcelWrap: spawn at position, use PopupEntity

Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
This commit is contained in:
Vanessa 2026-08-07 18:24:53 -05:00 committed by GitHub
parent efbeb5bf68
commit b38f0b1a59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public sealed partial class ParcelWrappingSystem
if (target == user) if (target == user)
{ {
var selfMsg = Loc.GetString("parcel-wrap-popup-being-wrapped-self"); var selfMsg = Loc.GetString("parcel-wrap-popup-being-wrapped-self");
_popup.PopupClient(selfMsg, user, user); _popup.PopupEntity(selfMsg, user, user);
} }
else else
{ {
@ -143,7 +143,7 @@ public sealed partial class ParcelWrappingSystem
// Spawn the actual parcel entity. // Spawn the actual parcel entity.
var targetTransform = Transform(target); var targetTransform = Transform(target);
var spawned = Spawn(GetParcelPrototype(wrapper, target), targetTransform.Coordinates); var spawned = SpawnAtPosition(GetParcelPrototype(wrapper, target), targetTransform.Coordinates);
_transform.SetLocalRotation(spawned, targetTransform.LocalRotation); _transform.SetLocalRotation(spawned, targetTransform.LocalRotation);
// If the target is in a container, try to put the parcel in its place in the container. // If the target is in a container, try to put the parcel in its place in the container.