-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change 'mesecons' from optional dependencies to dependencies #44
Comments
Can you check your setup: this should not happen unless you have the Lines 181 to 184 in e45eca7
Your mod(s) might be out of date |
I think lua tube requires both so we could make it explicit to not depend on external dependency - (minetest.get_modpath("mesecons") or minetest.get_modpath("digilines")) then
+ minetest.get_modpath("mesecons") and minetest.get_modpath("digilines") then or if digilines is actually optional for lua tube (mesecons isn't, probably same with digilines but not 100% sure): - if pipeworks.enable_lua_tube and
- (minetest.get_modpath("mesecons") or minetest.get_modpath("digilines")) then
+ if pipeworks.enable_lua_tube and minetest.get_modpath("mesecons") then |
it does "work" without mesecons |
EDIT: nevermind, didn't see the commit 🤦 |
If I don't enable mesecons, it will say
ModError: Failed to load and run script from /home/user/.minetest/mods/pipeworks/init.lua:
/home/user/.minetest/mods/pipeworks/lua_tube.lua:302: attempt to index global 'mesecon' (a nil value)
stack traceback:
/home/user/.minetest/mods/pipeworks/lua_tube.lua:302: in main chunk
[C]: in function 'dofile'
/home/user/.minetest/mods/pipeworks/init.lua:147: in main chunk
Check debug.txt for details.
The text was updated successfully, but these errors were encountered: