From b51b83148315e3a0dc555e2aac974069d321eebe Mon Sep 17 00:00:00 2001 From: Treer Date: Wed, 17 Jul 2024 05:21:15 +1000 Subject: [PATCH] Remove technic (fix issue #77) (#78) nether added technic support on April 29, and technic added nether support on May 1, resulting in them both optionally depending on each other and becoming incompatible with each other. To resolve this, technic will keep the nether support, the compressor recipe has been moved into technic (https://github.com/minetest-mods/technic/pull/644), and this commit reverts the technic-related parts of a6d1f55f, removing the technic dependency. --- .luacheckrc | 1 - init.lua | 4 +--- mod.conf | 2 +- nether-compressor-recipe.lua | 40 ------------------------------------ 4 files changed, 2 insertions(+), 45 deletions(-) delete mode 100644 nether-compressor-recipe.lua diff --git a/.luacheckrc b/.luacheckrc index 6946337..c113881 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -27,7 +27,6 @@ read_globals = { "stairsplus", "string.split", table = { fields = { "copy", "getn" } }, - "technic", "toolranks", "vector", "VoxelArea", diff --git a/init.lua b/init.lua index 9f8116e..78209c9 100644 --- a/init.lua +++ b/init.lua @@ -144,9 +144,7 @@ if nether.NETHER_REALM_ENABLED then end end dofile(nether.path .. "/portal_examples.lua") -if minetest.get_modpath("technic") then - dofile(nether.path .. "/nether-compressor-recipe.lua") -end + -- Portals are ignited by right-clicking with a mese crystal fragment nether.register_portal_ignition_item( diff --git a/mod.conf b/mod.conf index 978b9b6..5eb348a 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,4 @@ name = nether description = Adds a deep underground realm with different mapgen that you can reach with obsidian portals. depends = stairs, default -optional_depends = toolranks, technic, moreblocks, mesecons, loot, dungeon_loot, doc_basics, fire, climate_api, ethereal, xpanes, walls +optional_depends = toolranks, moreblocks, mesecons, loot, dungeon_loot, doc_basics, fire, climate_api, ethereal, xpanes, walls diff --git a/nether-compressor-recipe.lua b/nether-compressor-recipe.lua deleted file mode 100644 index 5babc35..0000000 --- a/nether-compressor-recipe.lua +++ /dev/null @@ -1,40 +0,0 @@ -local S = minetest.get_translator("nether") - -technic.register_recipe_type("compressing", { description = S("Compressing") }) - -function register_compressor_recipe(data) - data.time = data.time or 4 - technic.register_recipe("compressing", data) -end - -local recipes = { - {"nether:rack", "nether:brick",}, - {"nether:rack_deep", "nether:brick_deep"}, - {"nether:brick 9", "nether:brick_compressed", 12}, - {"nether:brick_compressed 9", "nether:nether_lump", 12} - -} --- clear craft recipe --- But allow brick blocks to be crafted like the other bricks from Minetest Game - -minetest.clear_craft({ - recipe = { - {"nether:brick","nether:brick","nether:brick"}, - {"nether:brick","nether:brick","nether:brick"}, - {"nether:brick","nether:brick","nether:brick"}, - } -}) - -minetest.clear_craft({ - recipe = { - {"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, - {"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, - {"nether:brick_compressed","nether:brick_compressed","nether:brick_compressed"}, - } -}) - -for _, data in pairs(recipes) do - register_compressor_recipe({input = {data[1]}, output = data[2], time = data[3]}) -end - -