mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-07 18:50:41 +02:00
Add GitHub workflow and luacheck (#545)
Add badge to README Fix luacheck warnings Remove node_ownership globals (and support)
This commit is contained in:
@ -39,7 +39,7 @@ local function register_recipe(typename, data)
|
||||
else
|
||||
data.output = ItemStack(data.output):to_string()
|
||||
end
|
||||
|
||||
|
||||
local recipe = {time = data.time, input = {}, output = data.output}
|
||||
local index = get_recipe_index(data.input)
|
||||
if not index then
|
||||
@ -49,7 +49,7 @@ local function register_recipe(typename, data)
|
||||
for _, stack in ipairs(data.input) do
|
||||
recipe.input[ItemStack(stack):get_name()] = ItemStack(stack):get_count()
|
||||
end
|
||||
|
||||
|
||||
technic.recipes[typename].recipes[index] = recipe
|
||||
if have_ui and technic.recipes[typename].output_size == 1 then
|
||||
unified_inventory.register_craft({
|
||||
|
Reference in New Issue
Block a user