Skip to content

Commit

Permalink
fix: function getItemCountOrSubType does not exist. (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 authored Nov 27, 2023
1 parent 60ed8a7 commit 674ad54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/game_bot/functions/ui_elements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ UI.Container = function(callback, unique, parent, widget)
for i, child in ipairs(widget.items:getChildren()) do
if child:getItemId() >= 100 then
if not duplicates[child:getItemId()] or not unique then
table.insert(items, {id=child:getItemId(), count=child:getItemCountOrSubType()})
table.insert(items, {id=child:getItemId(), count=child:getCountOrSubType()})
duplicates[child:getItemId()] = true
end
end
Expand Down

0 comments on commit 674ad54

Please sign in to comment.