mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix for off-by-one error (#2)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user