From a3287bb2bc73c1aed547f0edef8944852adaa049 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Sat, 13 Jul 2024 19:07:17 +0200 Subject: [PATCH] Fixed suture needle causing an error --- .../client/TOC/UI/Interactions/CutLimbInteractionHandler.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/media/lua/client/TOC/UI/Interactions/CutLimbInteractionHandler.lua b/media/lua/client/TOC/UI/Interactions/CutLimbInteractionHandler.lua index f7aed06..f6ccbad 100644 --- a/media/lua/client/TOC/UI/Interactions/CutLimbInteractionHandler.lua +++ b/media/lua/client/TOC/UI/Interactions/CutLimbInteractionHandler.lua @@ -38,9 +38,8 @@ local function GetStitchesConsumableItem(player) -- Suture needle has priority local sutureNeedle = plInv:FindAndReturn("Base.SutureNeedle") - ---@cast sutureNeedle DrainableComboItem - if sutureNeedle and sutureNeedle:getUsedDelta() > 0 then + if sutureNeedle then return sutureNeedle else -- Didn't find the suture one, so let's search for the normal one + thread