Fixes: deprecated warning for getpos

master
shivajiva101 2021-12-16 19:26:22 +00:00 committed by GitHub
parent 6d5813745c
commit abfc5c5214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@ local function create_ban_record(name, source, reason, expires)
-- initialise last position
local last_pos = ""
if player then
last_pos = minetest.pos_to_string(vector.round(player:getpos()))
last_pos = minetest.pos_to_string(vector.round(player:get_pos()))
end
-- cache the ban