From f5277ce66188df35ee3c411fc8ba98e050403182 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 28 Feb 2018 15:24:17 +0200 Subject: [PATCH] Fixed clients being unable to crowbar doors due to OnPicked only being called on local players. Closes #297 --- .../Source/Items/Components/Holdable/Pickable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Pickable.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Pickable.cs index 72319fea4..e9daebd1d 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Pickable.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Pickable.cs @@ -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; }