From 50d19faa488e98453ca01ff268fb37619265c2d7 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 27 Jul 2020 04:04:51 +0200 Subject: [PATCH] Paranoid check --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1df290c..88a0dc6 100644 --- a/init.lua +++ b/init.lua @@ -718,7 +718,11 @@ local function cache_recipes(item) end for k, v in pairs(replacements[item]) do - _recipes[k + shift].replacements = v + k = k + shift + + if _recipes[k] then + _recipes[k].replacements = v + end end recipes = _recipes