fix crash when auto-controller reaches unloaded nodes.

This commit is contained in:
FaceDeer 2017-01-12 14:51:57 -07:00
parent 0dadeb054e
commit 9da077c9ef

@ -78,7 +78,8 @@ function DigtronLayout.create(pos, player)
if node.name == "ignore" then if node.name == "ignore" then
--buildtron array is next to unloaded nodes, too dangerous to do anything. Abort. --buildtron array is next to unloaded nodes, too dangerous to do anything. Abort.
return nil self.all = nil
return self
end end
if minetest.get_item_group(node.name, "water") ~= 0 then if minetest.get_item_group(node.name, "water") ~= 0 then
@ -347,4 +348,3 @@ function DigtronLayout.write_layout_image(self)
end end
end end
end end