1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-25 02:00:21 +01:00

quick fix for pathfinding glitch

This commit is contained in:
TenPlus1 2017-08-04 09:15:48 +01:00
parent 20d1eeec64
commit bc13ef7410

View File

@ -1018,7 +1018,7 @@ local smart_mobs = function(self, s, p, dist, dtime)
-- round position to center of node to avoid stuck in walls
-- also adjust height for player models!
s.x = floor(s.x + 0.5)
s.y = floor(s.y + 0.5) - sheight
-- s.y = floor(s.y + 0.5) - sheight
s.z = floor(s.z + 0.5)
local ssight, sground = minetest.line_of_sight(s, {