Update Fork #1

Merged
chmodsayshello merged 696 commits from MineClone5/MineClone5:master into master 2022-03-23 14:40:26 +01:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 79170e2386 - Show all commits

View File

@ -229,7 +229,8 @@ function mobs.drive(entity, moving_anim, stand_anim, can_fly, dtime)
-- mob rotation
local rotate = entity.rotate
if rotate then
local yaw = entity.driver:get_look_horizontal() - rotate
local driver_look_horizontal = entity.driver:get_look_horizontal() or 0
local yaw = driver_look_horizontal - rotate
entity.yaw = yaw
entity.object:set_yaw(yaw)
end