From de244c1aeb7257ecbfe286cc3452c55ddc91256c Mon Sep 17 00:00:00 2001 From: Lunovox Date: Thu, 22 Feb 2024 03:57:27 +0000 Subject: [PATCH] --- components_digs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components_digs.lua b/components_digs.lua index 25d01bc..e323bb8 100644 --- a/components_digs.lua +++ b/components_digs.lua @@ -33,13 +33,13 @@ end -- Dig 'components:bioresin' in 'default:jungletree' modComponents.addDrops("default:jungletree", 1, 'default:jungletree') -- rarity:1 = 1/1 = 100% modComponents.addDrops("components:bioresin", 5, 'default:jungletree') -- rarity:5 = 1/5 = 20% -if type(unified_inventory)~="nil" and unified_inventory.add_category_items then +if type(unified_inventory)=="table" and type(unified_inventory.add_category_items)=="function" then unified_inventory.add_category_items('plants', {"components:bioresin"}) end --######################################################################################################################## -- Dig 'components:quartzo_crystal_pink' in 'default:gravel' modComponents.addDrops("components:quartzo_crystal_pink", 20, 'default:gravel') -- rarity:20 = 1/20 = 05% -if type(unified_inventory)~="nil" and unified_inventory.add_category_items then +if type(unified_inventory)=="table" and type(unified_inventory.add_category_items)=="function" then unified_inventory.add_category_items('minerals', {"components:quartzo_crystal_pink"}) end --########################################################################################################################