forked from VoxeLibre/VoxeLibre
Fix Wuzzy/MineClone2#994 Crash in mcl_mobs
This commit is contained in:
parent
b6aabfc853
commit
a41e0628e5
|
@ -393,7 +393,7 @@ local is_node_dangerous = function(self, nodename)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
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
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue