Merge branch 'fix_undeclared' into 'master'

Fix Undeclared Global Variable "unified_inventory"

See merge request VanessaE/pipeworks!44
This commit is contained in:
Vanessa Dannenberg 2021-05-14 04:08:02 +00:00
commit c39d40e940

View File

@ -151,7 +151,7 @@ minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
-- Unified Inventory categories integration
if unified_inventory and unified_inventory.registered_categories then
if minetest.global_exists("unified_inventory") and unified_inventory.registered_categories then
if not unified_inventory.registered_categories["automation"] then
unified_inventory.register_category("automation", {
symbol = "pipeworks:lua_tube000000",