summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-01-17 15:35:35 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-01-17 15:35:35 +0000
commit44659da76892ec2e496fcae510bace9b46306c6d (patch)
treede524ff0ddaba48b2d5b209c638ce6a07b6d74ce /api.lua
parent58317c55b280d17d38e1a81c454d83cb8cc61a3c (diff)
fix rotation bug
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index 355cb78..68d2e97 100644
--- a/api.lua
+++ b/api.lua
@@ -112,7 +112,8 @@ set_yaw = function(self, yaw)
return
end
- self.yaw = yaw - self.rotate
+ --self.yaw = yaw - self.rotate
+ self.yaw = yaw
self.object:setyaw(self.yaw)
end
@@ -2373,6 +2374,9 @@ function mobs:register_mob(name, def)
minetest.register_entity(name, {
+automatic_face_movement_dir = def.rotate and math.rad(def.rotate) or false,
+automatic_face_movement_max_rotation_per_sec = -1,
+
stepheight = def.stepheight or 0.6,
name = name,
type = def.type,