forked from MineClone5/MineClone5
Fix crash when standing on unknown node
This commit is contained in:
parent
8c20dfa5d2
commit
94c4256451
|
@ -28,6 +28,9 @@ minetest.register_globalstep(function(dtime)
|
||||||
if not node_stand or not node_stand_below or not node_head or not node_feet then
|
if not node_stand or not node_stand_below or not node_head or not node_feet then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if not minetest.registered_nodes[node_stand] or not minetest.registered_node[node_stand_below] or not minetest.registered_nodes[node_head] or not minetest.registered_nodes[node_feet] then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Cause buggy exhaustion for jumping
|
-- Cause buggy exhaustion for jumping
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue