fix deprecated use of getpos

fixes #54
This commit is contained in:
OgelGames 2022-02-04 16:45:13 +11:00 committed by GitHub
parent 5e8c513fdd
commit 22a83072a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ minetest.register_globalstep(function(dtime)
for _,player in ipairs(minetest.get_connected_players()) do for _,player in ipairs(minetest.get_connected_players()) do
local pos = player:getpos() local pos = player:get_pos()
-- check if player can travel there -- check if player can travel there
local can_travel, err_msg = pandorabox.can_travel(player, pos) local can_travel, err_msg = pandorabox.can_travel(player, pos)