Fix following

This commit is contained in:
BlockMen 2014-05-10 15:31:47 +02:00
parent a23c5aec9c
commit 6fda1040ad

View File

@ -174,7 +174,6 @@ function creatures.follow(self, items, radius)
end
end
if quit then return end
end
NPC = current_pos
PLAYER = object:getpos()
self.vec = {x=PLAYER.x-NPC.x, y=PLAYER.y-NPC.y, z=PLAYER.z-NPC.z}
@ -188,6 +187,7 @@ function creatures.follow(self, items, radius)
end
end
end
end
-- hostile mobs
dofile(minetest.get_modpath("creatures").."/ghost.lua")