mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
force stash to a table when removing items
This commit is contained in:
@@ -295,7 +295,9 @@ end
|
|||||||
--- stashRemoveItem(currentItems, "playerStash", { iron = 2, wood = 5 })
|
--- stashRemoveItem(currentItems, "playerStash", { iron = 2, wood = 5 })
|
||||||
--- ```
|
--- ```
|
||||||
function stashRemoveItem(stashItems, stashName, items)
|
function stashRemoveItem(stashItems, stashName, items)
|
||||||
|
if type(stashName) ~= "table" then
|
||||||
|
stashName = { stashName }
|
||||||
|
end
|
||||||
if isStarted(OXInv) then
|
if isStarted(OXInv) then
|
||||||
for k, v in pairs(items) do
|
for k, v in pairs(items) do
|
||||||
if type(stashName) == "table" then
|
if type(stashName) == "table" then
|
||||||
|
|||||||
Reference in New Issue
Block a user