mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-25 20:23:42 +01:00
fix wip
This commit is contained in:
parent
701c7ae690
commit
0b37b2bb2f
4
init.lua
4
init.lua
@ -1465,14 +1465,12 @@ core.register_craft = function(def)
|
||||
if def.type == "fuel" then
|
||||
def.replacements = def.replacements
|
||||
def.items = {def.recipe}
|
||||
def.recipe = nil
|
||||
fuel_cache[name] = def
|
||||
|
||||
elseif def.type == "cooking" then
|
||||
def.cooktime = def.cooktime or 1
|
||||
def.items = {def.recipe}
|
||||
def.recipe = nil
|
||||
cook_cache[name] = def
|
||||
cook_cache[def.recipe] = def
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user