Better fix

This commit is contained in:
tbowan 2017-02-14 10:32:52 +01:00 committed by GitHub
parent 8ea9af6e23
commit f5968b952d

View File

@ -103,7 +103,7 @@ local function is_good_node(node, exceptions)
break break
end end
end end
if node.name ~= nil and not minetest.registered_nodes[node.name].walkable then if node ~= nil and node.name ~= nil and not minetest.registered_nodes[node.name].walkable then
return pathfinder.node_types.walkable return pathfinder.node_types.walkable
elseif is_openable then elseif is_openable then
return pathfinder.node_types.openable return pathfinder.node_types.openable