Fixed suture needle causing an error

This commit is contained in:
ZioPao
2024-07-13 19:07:17 +02:00
parent 6c82f1a96f
commit a3287bb2bc

View File

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