check for negative quantities in crafting functions
This commit is contained in:
@@ -646,7 +646,7 @@ PlayerInventoryUI:registerOnFormFieldActionMatch('%S+::%S+::craft_item', functio
|
||||
end
|
||||
|
||||
Smc.putOrDrop(player, inventory, craft.output)
|
||||
elseif tabName == 'node_tab' and allowCrafting and handler.baseType == 'immersive' then
|
||||
elseif allowCrafting and tabName == 'node_tab' and handler.baseType == 'immersive' then
|
||||
---@type CraftSystem.ImmersiveCraft
|
||||
craft = craft
|
||||
local inventory = player:get_inventory()
|
||||
|
||||
Reference in New Issue
Block a user