mirror of
git://repo.or.cz/minetest_hbhunger.git
synced 2024-12-23 00:20:16 +01:00
Add simple eating sound
This commit is contained in:
parent
65b9b131f8
commit
f19096fe11
@ -26,6 +26,7 @@ function hbhunger.item_eat(hunger_change, replace_with_item, poisen, heal)
|
||||
local name = user:get_player_name()
|
||||
local h = tonumber(hbhunger.hunger[name])
|
||||
local hp = user:get_hp()
|
||||
minetest.sound_play({name = "hbhunger_eat_generic", gain = 1}, {pos=user:getpos(), max_hear_distance = 16})
|
||||
|
||||
-- Saturation
|
||||
if h < 30 and hunger_change then
|
||||
|
BIN
sounds/hbhunger_eat_generic.ogg
Normal file
BIN
sounds/hbhunger_eat_generic.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user