1
0
mirror of https://github.com/minetest-mods/irc.git synced 2025-06-30 15:10:30 +02:00

Fix deprecated functions, update to 5.x (#59)

This commit is contained in:
David Leal
2019-10-05 02:25:05 -05:00
committed by SmallJoker
parent 05ab5e9fbd
commit ac0387786c
5 changed files with 7 additions and 16 deletions

View File

@ -139,7 +139,7 @@ irc.register_bot_command("whereis", {
return false, "There is no player named '"..args.."'"
end
local fmt = "Player %s is at (%.2f,%.2f,%.2f)"
local pos = player:getpos()
local pos = player:get_pos()
return true, fmt:format(args, pos.x, pos.y, pos.z)
end
})