(f0be0bba0) Fixed inability to repair items when they'er not deteriorating (was caused by 9a14162)

This commit is contained in:
Joonas Rikkonen
2019-04-08 15:59:19 +03:00
parent e124c593c7
commit eaf8b1275d

View File

@@ -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)