Fix following
This commit is contained in:
parent
a23c5aec9c
commit
6fda1040ad
2
init.lua
2
init.lua
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user