Apply CR recommendations
This commit is contained in:
parent
a7566d187f
commit
6cbd6bb15e
|
@ -8,15 +8,6 @@ function technic.register_compressor_recipe(data)
|
|||
technic.register_recipe("compressing", data)
|
||||
end
|
||||
|
||||
function technic.clear_sand_to_sandstone_craft(sand_name)
|
||||
minetest.clear_craft({
|
||||
recipe = {
|
||||
{sand_name, sand_name},
|
||||
{sand_name, sand_name},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
local recipes = {
|
||||
{"default:snowblock", "default:ice"},
|
||||
{"default:sand 2", "default:sandstone"},
|
||||
|
@ -72,10 +63,14 @@ if minetest.get_modpath("everness") then
|
|||
end
|
||||
|
||||
for _, sand_name in ipairs(crafts_to_clear) do
|
||||
technic.clear_sand_to_sandstone_craft(sand_name)
|
||||
minetest.clear_craft({
|
||||
recipe = {
|
||||
{sand_name, sand_name},
|
||||
{sand_name, sand_name},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
for _, data in pairs(recipes) do
|
||||
technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue