1
0
Fork 0

Fix crash when standing on unknown node

This commit is contained in:
Wuzzy 2020-05-08 17:23:39 +02:00
parent 8c20dfa5d2
commit 94c4256451
1 changed files with 3 additions and 0 deletions

View File

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