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:
@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user