Change deprecated getpos method to get_pos

This commit is contained in:
bri cassa 2021-03-06 14:36:56 +01:00
parent aa597c7ad8
commit 5d3c6d4a44
1 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ local get_ambience = function(player)
local player_is_descending = false
local player_is_moving_horiz = false
local standing_in_water = false
local pos = player:getpos()
local pos = player:get_pos()
get_immediate_nodes(pos)
if last_x_pos ~=pos.x or last_z_pos ~=pos.z then
@ -508,7 +508,7 @@ local get_ambience = function(player)
-- minetest.chat_send_all("Found " .. nodename .. pos.y )
if player:getpos().y < 0 then
if player:get_pos().y < 0 then
if music then
return {cave=cave, cave_frequent=cave_frequent, music=music}
else