Skip to content

Commit c8bccec

Browse files
Update init.lua (#155)
1 parent b0496fc commit c8bccec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

init.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,14 @@ minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
117117

118118
if minetest.get_modpath("unified_inventory") and unified_inventory.registered_categories then
119119
if not unified_inventory.registered_categories["automation"] then
120+
local symbol
121+
if pipeworks.enable_lua_tube then
122+
symbol = "pipeworks:lua_tube000000"
123+
else
124+
symbol = "pipeworks:mese_filter" -- fallback when lua tube isn't registered
125+
end
120126
unified_inventory.register_category("automation", {
121-
symbol = "pipeworks:lua_tube000000",
127+
symbol = symbol,
122128
label = "Automation components"
123129
})
124130
end

0 commit comments

Comments
 (0)