Replace deprecated getpos call

This commit is contained in:
stujones11
2019-03-05 19:40:54 +00:00
parent be9579a365
commit 3fe7dd2249
4 changed files with 6 additions and 6 deletions

View File

@ -111,7 +111,7 @@ armor:register_armor("mod_name:speed_boots", {
damage_groups = {cracky=3, snappy=3, choppy=3, crumbly=3, level=1},
reciprocate_damage = true,
on_destroy = function(player, index, stack)
local pos = player:getpos()
local pos = player:get_pos()
if pos then
minetest.sound_play({
name = "mod_name_break_sound",