From 8f7f9bb009590da9e6b750515fc81d1f12724902 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 29 Apr 2025 02:37:47 +0100 Subject: [PATCH] force stash to a table when removing items --- shared/stashcontrol.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/stashcontrol.lua b/shared/stashcontrol.lua index f392554..9dd1446 100644 --- a/shared/stashcontrol.lua +++ b/shared/stashcontrol.lua @@ -295,7 +295,9 @@ end --- stashRemoveItem(currentItems, "playerStash", { iron = 2, wood = 5 }) --- ``` function stashRemoveItem(stashItems, stashName, items) - + if type(stashName) ~= "table" then + stashName = { stashName } + end if isStarted(OXInv) then for k, v in pairs(items) do if type(stashName) == "table" then