Fixed ItemContainer not setting the position of a contained item when it's placed in the ItemInventory, minor refactoring

This commit is contained in:
Regalis
2017-02-07 20:47:24 +02:00
parent d46207916f
commit e2a872ad90
5 changed files with 10 additions and 31 deletions
+3
View File
@@ -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;
}