1
0
mirror of https://github.com/MinetestForFun/h2omes.git synced 2025-07-20 00:50:24 +02:00

Compare commits

...

1 Commits

Author SHA1 Message Date
a95392ad0e Replace deprecated set_pos method 2021-04-04 15:26:23 +02:00

View File

@ -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