Fix PlaceableSurface incorrect coordinate usage.

It set world position to entity coordinate positions...
This commit is contained in:
Vera Aguilera Puerto
2021-08-06 17:52:42 +02:00
parent eeac2f369d
commit 9882f46825
2 changed files with 6 additions and 2 deletions

View File

@@ -95,9 +95,9 @@ namespace Content.Server.Placeable
}
handComponent.Drop(eventArgs.Using);
if (_placeCentered)
eventArgs.Using.Transform.WorldPosition = eventArgs.Target.Transform.WorldPosition + _positionOffset;
eventArgs.Using.Transform.LocalPosition = eventArgs.Target.Transform.LocalPosition + _positionOffset;
else
eventArgs.Using.Transform.WorldPosition = eventArgs.ClickLocation.Position;
eventArgs.Using.Transform.Coordinates = eventArgs.ClickLocation;
return true;
}
}

View File

@@ -0,0 +1,4 @@
author: Zumorica
changes:
- type: Fix
message: Fixes a bug where items would disappear when placed in tables, in certain situations.