mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 04:23:44 +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
|
if def.type == "fuel" then
|
||||||
def.replacements = def.replacements
|
def.replacements = def.replacements
|
||||||
def.items = {def.recipe}
|
def.items = {def.recipe}
|
||||||
def.recipe = nil
|
|
||||||
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 = def.cooktime or 1
|
||||||
def.items = {def.recipe}
|
def.items = {def.recipe}
|
||||||
def.recipe = nil
|
cook_cache[def.recipe] = def
|
||||||
cook_cache[name] = def
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user