forked from mtcontrib/diet
Fix call of a deprecated method
This commit is contained in:
parent
7d3e3c869e
commit
1dfd4a0c66
2
init.lua
2
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])
|
||||
|
Loading…
Reference in New Issue
Block a user