From 1dfd4a0c6650d735fe769ccab5c334b0432ffe6d Mon Sep 17 00:00:00 2001 From: sys4 Date: Sat, 26 Jun 2021 20:59:58 +0200 Subject: [PATCH] Fix call of a deprecated method --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 02f0038..283c4ac 100644 --- a/init.lua +++ b/init.lua @@ -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])