mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-27 15:00:18 +02:00
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)
|
technic.register_recipe("compressing", data)
|
||||||
end
|
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 = {
|
local recipes = {
|
||||||
{"default:snowblock", "default:ice"},
|
{"default:snowblock", "default:ice"},
|
||||||
{"default:sand 2", "default:sandstone"},
|
{"default:sand 2", "default:sandstone"},
|
||||||
|
@ -72,10 +63,14 @@ if minetest.get_modpath("everness") then
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, sand_name in ipairs(crafts_to_clear) do
|
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
|
end
|
||||||
|
|
||||||
for _, data in pairs(recipes) do
|
for _, data in pairs(recipes) do
|
||||||
technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
|
technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user