From a41e0628e5e1330af475f51ba09700cc7491fc0c Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 21 Jan 2021 12:36:33 +0400 Subject: [PATCH] Fix https://git.minetest.land/Wuzzy/MineClone2/issues/994 Crash in mcl_mobs --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 7fee798bc..61976d760 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -393,7 +393,7 @@ local is_node_dangerous = function(self, nodename) return true end end - if minetest.registered_nodes[nn].damage_per_second > 0 then + if minetest.registered_nodes[nn].damage_per_second and minetest.registered_nodes[nn].damage_per_second > 0 then return true end return false