Fix Undeclared global variable "unified_inventory"

This commit is contained in:
Jordan Irwin 2021-05-13 10:57:58 -07:00
parent 2670fd88a9
commit 48b082e014

View File

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