(17bb71ed5) Fix repair tool not being used if the repair target is not within interaction area. Fixes repairing items with the welding tool. Partial fix to #63 (dev).

This commit is contained in:
Joonas Rikkonen
2019-04-25 17:45:33 +03:00
parent f71cb42894
commit 9b8d0ffc51

View File

@@ -83,12 +83,12 @@ namespace Barotrauma
return;
}
}
if (repairTool == null)
{
FindRepairTool();
}
if (character.CanInteractWith(Item))
{
if (repairTool == null)
{
FindRepairTool();
}
if (repairTool != null)
{
OperateRepairTool(deltaTime);