1
0
Fork 0

Look upwards when sleeping

objects
Wuzzy 2019-12-19 18:48:27 +01:00
parent 87449b5719
commit 9fdbb35f24
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ local function lay_down(player, pos, bed_pos, state, skip)
-- physics, eye_offset, etc -- physics, eye_offset, etc
player:set_eye_offset({x = 0, y = -13, z = 0}, {x = 0, y = 0, z = 0}) player:set_eye_offset({x = 0, y = -13, z = 0}, {x = 0, y = 0, z = 0})
player:set_look_horizontal(yaw) player:set_look_horizontal(yaw)
player:set_look_vertical(0) player:set_look_vertical(-(math.pi/2))
player:get_meta():set_string("mcl_beds:sleeping", "true") player:get_meta():set_string("mcl_beds:sleeping", "true")
playerphysics.add_physics_factor(player, "speed", "mcl_beds:sleeping", 0) playerphysics.add_physics_factor(player, "speed", "mcl_beds:sleeping", 0)