From c7905c2a70e27bd8e7022c7644b6c047ea89334f Mon Sep 17 00:00:00 2001 From: Sami Lappalainen <46013823+lapinsami@users.noreply.github.com> Date: Wed, 9 Sep 2026 09:38:57 +0200 Subject: [PATCH] fix for off-by-one error (#2) --- NampowerAPI.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NampowerAPI.lua b/NampowerAPI.lua index c040d7c..abc74d1 100644 --- a/NampowerAPI.lua +++ b/NampowerAPI.lua @@ -1672,7 +1672,7 @@ function API.IsItemInSlot(itemIdOrName, inventorySlot) -- Use native v2.18 GetEquippedItem if available if GetEquippedItem then - local slotInfo = GetEquippedItem("player", inventorySlot - 1) -- 0-indexed + local slotInfo = GetEquippedItem("player", inventorySlot) if slotInfo and slotInfo.itemId then local checkId = tonumber(itemIdOrName) if checkId then