diff --git a/basic_machines/ta5_chest.lua b/basic_machines/ta5_chest.lua index 683762f..7165a07 100644 --- a/basic_machines/ta5_chest.lua +++ b/basic_machines/ta5_chest.lua @@ -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) \ No newline at end of file diff --git a/init.lua b/init.lua index 21fdcfe..5fc377a 100644 --- a/init.lua +++ b/init.lua @@ -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") diff --git a/liquids/ta5_tank.lua b/liquids/ta5_tank.lua index 3c30610..e41b3be 100644 --- a/liquids/ta5_tank.lua +++ b/liquids/ta5_tank.lua @@ -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)