1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-05-10 04:30:21 +02:00

Update init.lua (#155)

This commit is contained in:
The4codeblocks 2025-05-07 13:10:22 -05:00 committed by GitHub
parent b0496fcd41
commit c8bccec038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,8 +117,14 @@ minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
if minetest.get_modpath("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 if not unified_inventory.registered_categories["automation"] then
local symbol
if pipeworks.enable_lua_tube then
symbol = "pipeworks:lua_tube000000"
else
symbol = "pipeworks:mese_filter" -- fallback when lua tube isn't registered
end
unified_inventory.register_category("automation", { unified_inventory.register_category("automation", {
symbol = "pipeworks:lua_tube000000", symbol = symbol,
label = "Automation components" label = "Automation components"
}) })
end end