Fix PlaceableSurface incorrect coordinate usage.
It set world position to entity coordinate positions...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user