Stop crafting trying to check blank stash names

Skimmed through the stash checking and editing functions and added more "security" for handling nil or blank stash names
This commit is contained in:
Jim Shield
2025-07-11 13:33:44 +01:00
parent d4a08d5e2b
commit 79e765fbb0
2 changed files with 12 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ function craftingMenu(data)
-- Check if the player can carry the required items (server callback).
local canCarryTable = triggerCallback(getScript()..':server:canCarry', tempCarryTable)
local usingStash = data.stashName ~= nil
local usingStash = data.stashName ~= nil and data.stashName ~= ""
Menu[#Menu+1] = {
icon = usingStash and "fas fa-boxes-stacked" or "fas fa-person",