Replace setpos with set_pos in sethome
authorReedych <reedych@ya.ru>
Sat, 16 Dec 2017 05:10:35 +0000 (11:10 +0600)
committerrubenwardy <rubenwardy@gmail.com>
Sat, 16 Dec 2017 05:10:35 +0000 (05:10 +0000)
mods/sethome/init.lua

index 13a33e57d77e9c0b2b622c0ce45fe9f7b628269c..7f1ebced71821cb1565d53536282a65fe6f66ca9 100644 (file)
@@ -61,7 +61,7 @@ sethome.go = function(name)
        local pos = sethome.get(name)
        local player = minetest.get_player_by_name(name)
        if player and pos then
-               player:setpos(pos)
+               player:set_pos(pos)
                return true
        end
        return false