Skip to content

Commit 12beff8

Browse files
committed
Improve logging for FindItemInBag
1 parent ed8ec10 commit 12beff8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

code/GM_ItemManager.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ function me.FindItemInBag(itemId, enchantId, runeAbilityId)
284284
end
285285

286286
if itemInfo.itemId == itemId then
287-
mod.logger.LogError(me.tag, "Found a matching itemId " .. itemId .. " in bag: " .. i .. " slot: " .. j)
288-
289287
if me.IsEnchantIdMatching(itemInfo, enchantId) and me.IsRuneAbilityIdMatching(rune, runeAbilityId) then
288+
mod.logger.LogDebug(me.tag, "Found item in bag: " .. i .. " at position: " .. j)
289+
290290
return i, j
291291
end
292292
end
@@ -298,7 +298,6 @@ function me.FindItemInBag(itemId, enchantId, runeAbilityId)
298298
return nil, nil
299299
end
300300

301-
302301
--[[
303302
Check if the enchantId of an item matches the passed enchantId
304303

0 commit comments

Comments
 (0)