mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30:17 +01:00
Min limit cooking
This commit is contained in:
parent
98f8499103
commit
9890d8a669
2
init.lua
2
init.lua
@ -1468,7 +1468,7 @@ core.register_craft = function(def)
|
|||||||
fuel_cache[name] = def
|
fuel_cache[name] = def
|
||||||
|
|
||||||
elseif def.type == "cooking" then
|
elseif def.type == "cooking" then
|
||||||
def.cooktime = def.cooktime or 1
|
def.cooktime = max(1, def.cooktime or 1)
|
||||||
def.items = {def.recipe}
|
def.items = {def.recipe}
|
||||||
def.recipe = nil
|
def.recipe = nil
|
||||||
cook_cache[name] = cook_cache[name] or {}
|
cook_cache[name] = cook_cache[name] or {}
|
||||||
|
Loading…
Reference in New Issue
Block a user