From 0b37b2bb2fc154bc1d207870d48f9242ce546cb0 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 16 Jul 2020 14:47:52 +0200 Subject: [PATCH] fix wip --- init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 1630ea4..8c09804 100644 --- a/init.lua +++ b/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