Min limit cooking

This commit is contained in:
Jean-Patrick Guerrero 2020-07-17 02:01:38 +02:00
parent 98f8499103
commit 9890d8a669

@ -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 {}