mirror of
https://github.com/minetest-mods/nether.git
synced 2024-11-15 23:10:37 +01:00
treat technic variable as read-only
fix luacheck warning: nether-compressor-recipe.lua:5:10: setting read-only field 'register_compressor_recipe' of global 'technic' since a local function is all we need
This commit is contained in:
parent
5b692cfeb0
commit
d84cc4ba7e
|
@ -2,7 +2,7 @@ local S = minetest.get_translator("nether")
|
|||
|
||||
technic.register_recipe_type("compressing", { description = S("Compressing") })
|
||||
|
||||
function technic.register_compressor_recipe(data)
|
||||
function register_compressor_recipe(data)
|
||||
data.time = data.time or 4
|
||||
technic.register_recipe("compressing", data)
|
||||
end
|
||||
|
@ -46,7 +46,7 @@ minetest.clear_craft({
|
|||
})
|
||||
|
||||
for _, data in pairs(recipes) do
|
||||
technic.register_compressor_recipe({input = {data[1]}, output = data[2], time = data[3]})
|
||||
register_compressor_recipe({input = {data[1]}, output = data[2], time = data[3]})
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user