forked from mff/h2omes
Replace deprecated set_pos method
This commit is contained in:
parent
e52594c08d
commit
a95392ad0e
2
init.lua
2
init.lua
@ -164,7 +164,7 @@ function h2omes.to_home(name, home_type)
|
||||
status = "nether"
|
||||
end
|
||||
if h2omes.homes[name][home_type][status] then
|
||||
player:setpos(h2omes.homes[name][home_type][status])
|
||||
player:set_pos(h2omes.homes[name][home_type][status])
|
||||
minetest.chat_send_player(name, "Teleported to "..home_type.."!")
|
||||
minetest.sound_play("teleport", {to_player=name, gain = 1.0})
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user