mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 01:03:44 +01:00
Fix potential crash when falling onto unknown node
parent
e2360204a7
commit
bfd1fd69d1
@ -550,7 +550,8 @@ mcl_damage.register_modifier(function(obj, damage, reason)
|
|||||||
node = minetest.get_node(pos)
|
node = minetest.get_node(pos)
|
||||||
end
|
end
|
||||||
if node then
|
if node then
|
||||||
if minetest.registered_nodes[node.name].walkable then
|
local def = minetest.registered_nodes[node.name]
|
||||||
|
if not def or def.walkable then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if minetest.get_item_group(node.name, "water") ~= 0 then
|
if minetest.get_item_group(node.name, "water") ~= 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user