mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
change get_look_yaw to get_look_horizontal
This commit is contained in:
parent
cd52b5d952
commit
45338d6db2
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue