This commit is contained in:
kay27 2021-01-21 12:36:33 +04:00
parent b6aabfc853
commit a41e0628e5

View File

@ -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