Fixed clients being unable to crowbar doors due to OnPicked only being called on local players. Closes #297

This commit is contained in:
Joonas Rikkonen
2018-02-28 15:24:17 +02:00
parent 74ef5c6ea6
commit f5277ce661

View File

@@ -146,7 +146,7 @@ namespace Barotrauma.Items.Components
StopPicking(picker);
if (!picker.IsRemotePlayer) OnPicked(picker);
if (!picker.IsRemotePlayer || GameMain.Server != null) OnPicked(picker);
yield return CoroutineStatus.Success;
}