Fixed clients being unable to crowbar doors due to OnPicked only being called on local players. Closes #297
This commit is contained in:
@@ -146,7 +146,7 @@ namespace Barotrauma.Items.Components
|
|||||||
|
|
||||||
StopPicking(picker);
|
StopPicking(picker);
|
||||||
|
|
||||||
if (!picker.IsRemotePlayer) OnPicked(picker);
|
if (!picker.IsRemotePlayer || GameMain.Server != null) OnPicked(picker);
|
||||||
|
|
||||||
yield return CoroutineStatus.Success;
|
yield return CoroutineStatus.Success;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user