diff options
author | Wuzzy <almikes@aol.com> | 2015-03-08 09:19:24 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2015-03-08 09:19:24 +0100 |
commit | f19096fe113405621b5fbb9393b4d9a8ddde0d3c (patch) | |
tree | ae0a4865bf7bf9f233849d31b31db07668ddbc45 /hunger.lua | |
parent | 65b9b131f8af30a3aeefdb6ac8defb543822e5f9 (diff) |
Add simple eating sound
Diffstat (limited to 'hunger.lua')
-rw-r--r-- | hunger.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |