mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-18 06:26:01 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user