Replace deprecated set_pos method

This commit is contained in:
bri cassa 2021-04-04 15:26:23 +02:00
parent e52594c08d
commit a95392ad0e
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ function h2omes.to_home(name, home_type)
status = "nether" status = "nether"
end end
if h2omes.homes[name][home_type][status] then 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.chat_send_player(name, "Teleported to "..home_type.."!")
minetest.sound_play("teleport", {to_player=name, gain = 1.0}) minetest.sound_play("teleport", {to_player=name, gain = 1.0})
return true return true