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;
|
||||
}
|
||||
}
|
||||
|
||||
4
Resources/Changelog/Parts/tables.yml
Normal file
4
Resources/Changelog/Parts/tables.yml
Normal 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.
|
||||
Reference in New Issue
Block a user