Skip to content

Commit 878329f

Browse files
committed
Fix slot methods using instance instead of slot datatype
1 parent 931119f commit 878329f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slot_methods.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ function api_slot_item_id(menu_id, slot_index) end
3838
---@param menu_id number the menu instance you want to find matches on
3939
---@param match string[] a list of item values you want to match on, can be an item oid, "ANY" (for any item), or "" for blank
4040
---@param first_only boolean? @[Optional] if true, this method will return the first slot only rather than a list of matches
41-
---@return instance|instance[]|nil If first_only is true will return instance if one found or nil if not found and if first_only false will return a list of instances empty if none found.
41+
---@return slot|slot[]|nil If first_only is true will return instance if one found or nil if not found and if first_only false will return a list of instances empty if none found.
4242
function api_slot_match(menu_id, match, first_only) end
4343

4444
---
4545
---@param menu_id number the menu instance you want to find matches on
4646
---@param match string[] a list of item values you want to match on, can be an item oid, "ANY" (for any item), or "" for blank
4747
---@param range number[] a list of slot indexes to check. Indices start at 1 like LUA lists do
4848
---@param first_only boolean? @[Optional] if true, this method will return the first slot only rather than a list of matches
49-
---@return instance|instance[]|nil If first_only is true will return instance if one found or nil if not found and if first_only false will return a list of instances empty if none found.
49+
---@return slot|slot[]|nil If first_only is true will return instance if one found or nil if not found and if first_only false will return a list of instances empty if none found.
5050
function api_slot_match_range(menu_id, match, range, first_only) end
5151

5252
---

0 commit comments

Comments
 (0)