From b4f077cc74b5d24952836c0931dab500fc873671 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 29 Nov 2024 13:39:44 -0600 Subject: [PATCH] Stop crash when placing redstone dust next to unknown nodes --- mods/ITEMS/REDSTONE/vl_redstone/wire.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/vl_redstone/wire.lua b/mods/ITEMS/REDSTONE/vl_redstone/wire.lua index 5007be48b..a3dc47154 100644 --- a/mods/ITEMS/REDSTONE/vl_redstone/wire.lua +++ b/mods/ITEMS/REDSTONE/vl_redstone/wire.lua @@ -166,7 +166,7 @@ local function update_redstone_wire(orig, update_neighbor) local pos = vector.offset(orig, part[1], part[2], part[3]) local node = core.get_node(pos) local def = core.registered_nodes[node.name] - if def.groups.redstone or 0 ~= 0 then + if def and def.groups.redstone or 0 ~= 0 then mask = mask + part[4] if update_neighbor and def.groups.redstone_wire or 0 ~= 0 then update_redstone_wire(pos)