documentation, bugfixes

This commit is contained in:
flux
2022-06-20 14:29:13 -07:00
parent b6d2bc09e2
commit 143778621e
19 changed files with 444 additions and 158 deletions

View File

@ -185,7 +185,7 @@ function api.register_crafts_for_shapes(recipe)
type = "cooking",
output = api.get_schema_recipe_item(recipe.output, shape),
recipe = api.get_schema_recipe_item(recipe.recipe, shape),
cooktime = recipe.cooktime(api.registered_shapes[shape].eighths),
cooktime = recipe.cooktime * (api.registered_shapes[shape].eighths / 8),
})
end
@ -196,7 +196,7 @@ function api.register_crafts_for_shapes(recipe)
minetest.register_craft({
type = "fuel",
recipe = api.get_schema_recipe_item(recipe.recipe, shape),
burntime = recipe.burntime(api.registered_shapes[shape].eighths),
burntime = recipe.burntime * (api.registered_shapes[shape].eighths / 8),
})
end