We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac0969 commit ea49eb3Copy full SHA for ea49eb3
mods/beds/functions.lua
@@ -70,7 +70,7 @@ local function lay_down(player, pos, bed_pos, state, skip)
70
71
-- physics, eye_offset, etc
72
player:set_eye_offset({x = 0, y = 0, z = 0}, {x = 0, y = 0, z = 0})
73
- player:set_look_yaw(math.random(1, 180) / 100)
+ player:set_look_horizontal(math.random(1, 180) / 100)
74
default.player_attached[name] = false
75
player:set_physics_override(1, 1, 1)
76
hud_flags.wielditem = true
@@ -85,7 +85,7 @@ local function lay_down(player, pos, bed_pos, state, skip)
85
86
player:set_eye_offset({x = 0, y = -13, z = 0}, {x = 0, y = 0, z = 0})
87
local yaw, param2 = get_look_yaw(bed_pos)
88
- player:set_look_yaw(yaw)
+ player:set_look_horizontal(yaw)
89
local dir = minetest.facedir_to_dir(param2)
90
local p = {x = bed_pos.x + dir.x / 2, y = bed_pos.y, z = bed_pos.z + dir.z / 2}
91
player:set_physics_override(0, 0, 0)
mods/boats/init.lua
@@ -79,7 +79,7 @@ function boat.on_rightclick(self, clicker)
79
minetest.after(0.2, function()
80
default.player_set_animation(clicker, "sit" , 30)
81
end)
82
- self.object:setyaw(clicker:get_look_yaw() - math.pi / 2)
+ self.object:setyaw(clicker:get_look_horizontal() - math.pi / 2)
83
end
84
0 commit comments