Replace deprecated function getpos

master
Wuzzy 2019-08-23 10:29:04 +02:00
parent 05b7b0c35d
commit 81a041f067
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ minetest.register_on_item_eat(function(hp_change, replace_with_item, itemstack,
else
eat_sound = { name = "sloweater_eat_generic", gain = 1 }
end
minetest.sound_play(eat_sound, {pos=user:getpos(), max_hear_distance = 16})
minetest.sound_play(eat_sound, {pos=user:get_pos(), max_hear_distance = 16})
return nil
else
return itemstack