mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 05:45:10 +00:00
Fix Runtime error: attempt to index a nil value (api.lua:399 <- is_node_dangerous <- is_at_cliff_or_danger <- on_step_old <- void_damage:16)
This commit is contained in:
parent
512765a37d
commit
0ba7e4fc4d
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ local is_node_dangerous = function(self, nodename)
|
|||
return true
|
||||
end
|
||||
end
|
||||
if minetest.registered_nodes[nn].damage_per_second and minetest.registered_nodes[nn].damage_per_second > 0 then
|
||||
if minetest.registered_nodes[nn] and 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