Fix the bug with hyperloop dependency

This commit is contained in:
Joachim Stolberg 2023-05-06 18:40:15 +02:00
parent 65852f2035
commit 6ee7306e90
3 changed files with 13 additions and 3 deletions

View File

@ -240,3 +240,9 @@ minetest.register_craft({
output = "techage:ta5_hl_chest",
recipe = {"techage:chest_ta4", "techage:ta5_aichip"}
})
minetest.register_on_mods_loaded(function()
if not minetest.global_exists("hyperloop") then
minetest.clear_craft({output = "techage:ta5_hl_chest"})
end
end)

View File

@ -199,9 +199,7 @@ dofile(MP.."/basic_machines/itemsource.lua")
dofile(MP.."/basic_machines/recycler.lua")
dofile(MP.."/basic_machines/concentrator.lua")
dofile(MP.."/basic_machines/recipeblock.lua")
if minetest.global_exists("hyperloop") then
dofile(MP.."/basic_machines/ta5_chest.lua")
end
dofile(MP.."/basic_machines/ta5_chest.lua")
-- Liquids II
dofile(MP.."/liquids/tank.lua")

View File

@ -103,3 +103,9 @@ minetest.register_craft({
{"", "", ""},
},
})
minetest.register_on_mods_loaded(function()
if not minetest.global_exists("hyperloop") then
minetest.clear_craft({output = "techage:ta5_hl_tank"})
end
end)