Merge pull request #3 from tbowan/master

Fix error on unknown node
This commit is contained in:
Hector Kio 2017-02-20 18:20:53 -05:00 committed by GitHub
commit 37d8182bda

View File

@ -103,7 +103,7 @@ local function is_good_node(node, exceptions)
break
end
end
if 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
elseif is_openable then
return pathfinder.node_types.openable