ParcelWrap: spawn at position, use PopupEntity Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
This commit is contained in:
parent
efbeb5bf68
commit
b38f0b1a59
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue