Fixed items attached mid-round by other clients or the host being impossible to interact with and occasionally being attached to an incorrect position. Closes #296

This commit is contained in:
Joonas Rikkonen
2018-02-28 14:01:38 +02:00
parent 2585cc9873
commit 74ef5c6ea6
5 changed files with 40 additions and 18 deletions
@@ -208,7 +208,7 @@ namespace Barotrauma.Items.Components
if (item.body != null && !item.body.Enabled)
{
item.body.ResetDynamics();
item.body.ResetDynamics();
item.SetTransform(bodyDropPos, 0.0f);
item.body.Enabled = true;
}