diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-04 09:15:48 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-04 09:15:48 +0100 |
commit | bc13ef741022d61d75e5d2b5d8f01938931d8bf7 (patch) | |
tree | 40f211231a21b09dfab1ae93221616cf93a158f9 /api.lua | |
parent | 20d1eeec641a9dd73f136cd3be4281a4a0aa0a40 (diff) |
quick fix for pathfinding glitch
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, { |