From eaf8b1275d39fca99db209e0693d1d34d19df070 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 8 Apr 2019 15:59:19 +0300 Subject: [PATCH] (f0be0bba0) Fixed inability to repair items when they'er not deteriorating (was caused by 9a14162) --- .../BarotraumaShared/Source/Items/Components/Repairable.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Repairable.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Repairable.cs index 1a6c18870..f10a3bf3f 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Repairable.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Repairable.cs @@ -114,11 +114,10 @@ namespace Barotrauma.Items.Components public override void Update(float deltaTime, Camera cam) { UpdateProjSpecific(deltaTime); - - if (!ShouldDeteriorate()) { return; } - + if (CurrentFixer == null) { + if (!ShouldDeteriorate()) { return; } if (item.Condition > 0.0f) { if (deteriorationTimer > 0.0f)