Fix bug with 'ignore' nodes when some map areas are not fully loaded but NPC try to perform actions on them.

This commit is contained in:
Hector Franqui
2017-06-27 18:38:28 -04:00
parent cc56446206
commit e70888c3e5
3 changed files with 22 additions and 1 deletions

View File

@ -153,7 +153,11 @@ local function walkable(node, exceptions)
if node.name == "cottages:wood_flat" then
is_mg_villages_ceiling = true
end
if node ~= nil and node.name ~= nil and not minetest.registered_nodes[node.name].walkable then
if node ~= nil
and node.name ~= nil
and node.name ~= "ignore"
and minetest.registered_nodes[node.name]
and not minetest.registered_nodes[node.name].walkable then
return false
elseif is_openable then
return false