fixed undefined itemname

master
theFox6 2018-05-24 16:53:18 +02:00
parent 3a3cf033bd
commit ac062c4178
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ function working_villages.villager:go_to(pos)
self:set_timer("go_to:change_dir",0)
self:set_timer("go_to:give_up",0)
if self.path == nil then
--TODO: actually no path shouldn't be accepted
--we'd have to check whether we can find a shorter path in the right direction
self.path = {self.destination}
end
--print("the first waypiont on his path:" .. minetest.pos_to_string(self.path[1]))