change get_look_yaw to get_look_horizontal

This commit is contained in:
TenPlus1 2019-10-21 11:24:52 +01:00
parent cd52b5d952
commit 45338d6db2

View file

@ -155,7 +155,7 @@ local function throw_potion(itemstack, player)
z = dir.z * -3
})
obj:set_yaw(player:get_look_yaw() + math.pi)
obj:set_yaw(player:get_look_horizontal())
obj:get_luaentity().player = player
end