summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-08-04 09:15:48 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-08-04 09:15:48 +0100
commitbc13ef741022d61d75e5d2b5d8f01938931d8bf7 (patch)
tree40f211231a21b09dfab1ae93221616cf93a158f9 /api.lua
parent20d1eeec641a9dd73f136cd3be4281a4a0aa0a40 (diff)
quick fix for pathfinding glitch
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 1d8e943..281296c 100644
--- a/api.lua
+++ b/api.lua
@@ -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, {