mt-mods / pipeworks

Pipeworks is a mod for Minetest allowing the crafting and usage of pipes and tubes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crashing if unified inventory isnt enabled

AnYurii opened this issue · comments

debug.txt:

ERROR[Main]: ModError: Failed to load and run script from D:\Yurchick\Programs\minetest-5.7.0-win64\bin\..\mods\pipeworks\init.lua:
ERROR[Main]: ...rams\minetest-5.7.0-win64\bin\..\mods\pipeworks\init.lua:201: attempt to index global 'unified_inventory' (a boolean value)
ERROR[Main]: stack traceback:
ERROR[Main]: 	...rams\minetest-5.7.0-win64\bin\..\mods\pipeworks\init.lua:201: in main chunk

This shouldn't happen, the mod checks first if the global exists here:

pipeworks/init.lua

Lines 201 to 209 in ebe2331

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",
label = "Automation components"
})
end
unified_inventory.add_category_items("automation", pipeworks.ui_cat_tube_list)
end

Are you sure you are on the latest version?

EDIT: wait a minute, the log says (a boolean value) 🤔 what other mods do you have installed that may set the global to that value?

Yes, that is because of x bows mod