fix rotation bug

This commit is contained in:
TenPlus1 2017-01-17 15:35:35 +00:00
parent 58317c55b2
commit 44659da768

View File

@ -112,7 +112,8 @@ set_yaw = function(self, yaw)
return return
end end
self.yaw = yaw - self.rotate --self.yaw = yaw - self.rotate
self.yaw = yaw
self.object:setyaw(self.yaw) self.object:setyaw(self.yaw)
end end
@ -2373,6 +2374,9 @@ function mobs:register_mob(name, def)
minetest.register_entity(name, { 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, stepheight = def.stepheight or 0.6,
name = name, name = name,
type = def.type, type = def.type,