Fix call of a deprecated method

This commit is contained in:
bri cassa 2021-06-26 20:59:58 +02:00
parent 7d3e3c869e
commit 1dfd4a0c66
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function diet.item_eat(max, replace_with_item, poisen, heal)
-- Increase health
if minetest.get_modpath("hbhunger") and hbhunger then
minetest.sound_play({name = "hbhunger_eat_generic", gain = 1}, {pos=user:getpos(), max_hear_distance = 16})
minetest.sound_play({name = "hbhunger_eat_generic", gain = 1}, {pos=user:get_pos(), max_hear_distance = 16})
-- saturation
local h = tonumber(hbhunger.hunger[name])