mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 22:11:10 +01:00
Fix https://git.minetest.land/Wuzzy/MineClone2/issues/994 Crash in mcl_mobs
This commit is contained in:
parent
b6aabfc853
commit
a41e0628e5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue