Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 50d19fa

Browse files
committed
Paranoid check
1 parent d93f5b0 commit 50d19fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

init.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,11 @@ local function cache_recipes(item)
718718
end
719719

720720
for k, v in pairs(replacements[item]) do
721-
_recipes[k + shift].replacements = v
721+
k = k + shift
722+
723+
if _recipes[k] then
724+
_recipes[k].replacements = v
725+
end
722726
end
723727

724728
recipes = _recipes

0 commit comments

Comments
 (0)