mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
change set_look_yaw to set_look_horizontal
This commit is contained in:
parent
2913807d84
commit
d308e0d73e
1 changed files with 2 additions and 1 deletions
3
init.lua
3
init.lua
|
@ -111,6 +111,7 @@ minetest.register_node("teleport_potion:portal", {
|
||||||
waving = 1,
|
waving = 1,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
damage_per_second = 1, -- walking into portal hurts player
|
damage_per_second = 1, -- walking into portal hurts player
|
||||||
|
groups = {not_in_creative_inventory = 1},
|
||||||
|
|
||||||
-- start timer when portal appears
|
-- start timer when portal appears
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
@ -506,7 +507,7 @@ minetest.register_abm({
|
||||||
yaw = 1.57 -- east
|
yaw = 1.57 -- east
|
||||||
end
|
end
|
||||||
|
|
||||||
objs[n]:set_look_yaw(yaw)
|
objs[n]:set_look_horizontal(yaw)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue