mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-24 18:00:22 +01:00
fix the check for technic for craft recipes, use optional depends to
make sure it loads first
This commit is contained in:
parent
ec416df794
commit
c9b180116f
@ -174,8 +174,7 @@ end
|
||||
-- If the technic mod is present, then don't bother registering the recipes
|
||||
-- for the various tubes, as technic has its own recipes for those.
|
||||
|
||||
if io.open(minetest.get_modpath("pipeworks").."/../technic/init.lua", "r") == nil and
|
||||
io.open(minetest.get_modpath("pipeworks").."/../technic_master/technic/init.lua", "r") == nil then
|
||||
if not minetest.get_modpath("technic") then
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "pipeworks:tube 12",
|
||||
|
@ -1,2 +1,3 @@
|
||||
default
|
||||
mesecons?
|
||||
technic?
|
||||
|
Loading…
Reference in New Issue
Block a user