mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-15 23:10:41 +01:00
Revert "Add additional check for nether (to make sure that we have the right one)"
This reverts commit ec646b2059
.
This commit is contained in:
parent
72c32fa13e
commit
f68a3f060f
|
@ -8,18 +8,6 @@ function technic.register_compressor_recipe(data)
|
|||
technic.register_recipe("compressing", data)
|
||||
end
|
||||
|
||||
-- Function for cases where multiple mods exist with the same name,
|
||||
-- to check if we have the right one.
|
||||
local function is_right_mod(dependency)
|
||||
is_right = true
|
||||
|
||||
if dependency == "nether" then
|
||||
is_right = minetest.registered_nodes["nether:brick_compressed"] ~= nil
|
||||
end
|
||||
|
||||
return is_right
|
||||
end
|
||||
|
||||
-- Defuse the default recipes, since we have
|
||||
-- the compressor to take over in a more realistic manner.
|
||||
local crafts_to_clear = {
|
||||
|
@ -48,7 +36,7 @@ local dependent_crafts_to_clear = {
|
|||
-- Add dependent recipes to main collection of
|
||||
-- recipes to be cleared if their mods are used.
|
||||
for dependency, crafts in pairs(dependent_crafts_to_clear) do
|
||||
if minetest.get_modpath(dependency) and is_right_mod(dependency) then
|
||||
if minetest.get_modpath(dependency) then
|
||||
for _, craft_entry in ipairs(crafts) do
|
||||
table.insert(crafts_to_clear, craft_entry)
|
||||
end
|
||||
|
@ -116,7 +104,7 @@ local dependent_recipes = {
|
|||
-- Add dependent recipes to main recipe collection
|
||||
-- if their mods are used.
|
||||
for dependency, recipes_to_add in pairs(dependent_recipes) do
|
||||
if minetest.get_modpath(dependency) and is_right_mod(dependency) then
|
||||
if minetest.get_modpath(dependency) then
|
||||
for _, recipe_entry in ipairs(recipes_to_add) do
|
||||
table.insert(recipes, recipe_entry)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user