1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 14:50:41 +02:00

replace global_exists with get_modpath

related: #97
This commit is contained in:
OgelGames
2023-11-21 14:35:51 +11:00
parent dc77d1056c
commit 7c74d0bdf3
3 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
-- Unified Inventory categories integration
if minetest.global_exists("unified_inventory") and unified_inventory.registered_categories then
if minetest.get_modpath("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",