From 300b0545b46cc7c4f625bdff4c97f76af880dd96 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 2 Feb 2018 22:12:45 +0100 Subject: [PATCH] Fix crash in w/ falling nodes --- mods/ENTITIES/mcl_falling_nodes/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_falling_nodes/init.lua b/mods/ENTITIES/mcl_falling_nodes/init.lua index 7bb3942d62..d500f344d6 100644 --- a/mods/ENTITIES/mcl_falling_nodes/init.lua +++ b/mods/ENTITIES/mcl_falling_nodes/init.lua @@ -21,7 +21,7 @@ minetest.register_entity(":__builtin:falling_node", { }) local def = core.registered_nodes[node.name] -- Set correct entity yaw - if node.param2 ~= 0 then + if def and node.param2 ~= 0 then if (def.paramtype2 == "facedir" or def.paramtype2 == "colorfacedir") then self.object:set_yaw(core.dir_to_yaw(core.facedir_to_dir(node.param2))) elseif (def.paramtype2 == "wallmounted" or def.paramtype2 == "colorwallmounted") then