Fixed ItemContainer not setting the position of a contained item when it's placed in the ItemInventory, minor refactoring
This commit is contained in:
@@ -1549,6 +1549,9 @@ namespace Barotrauma
|
||||
|
||||
if (Container != null)
|
||||
{
|
||||
if (body != null) body.Enabled = true;
|
||||
SetTransform(Container.SimPosition, 0.0f);
|
||||
|
||||
Container.RemoveContained(this);
|
||||
Container = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user