Skip to content

Commit

Permalink
use current "player:move_to()" current syntax instead of "moveto"
Browse files Browse the repository at this point in the history
  • Loading branch information
entuland committed Jun 19, 2022
1 parent 0001ad0 commit a5a5912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function submit.teleport(form)
return
end
local player = minetest.get_player_by_name(form.playername)
player:moveto(pad.pos, false)
player:move_to(pad.pos, false)

local padname = form.globalnet and pad.global_fullname or pad.local_fullname
notify(form.playername, "Teleported to " .. padname)
Expand Down

0 comments on commit a5a5912

Please sign in to comment.