Skip to content

Commit 0b8be7e

Browse files
committed
What is missing: Require previous recipe to be valid to avoid crash
1 parent abe4982 commit 0b8be7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

what-is-missing_0.16.0/control.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ local function checkMachine(entity, debug)
259259
local previous = machineRecipes[pos].recipe
260260
local current = inentity
261261
machineRecipes[pos] = { entity = entity, recipe = inentity }
262-
if previous then
262+
if previous and previous.valid then
263263
if debug then
264264
out("Remove machine " .. previous.name)
265265
end

0 commit comments

Comments
 (0)