From f19096fe113405621b5fbb9393b4d9a8ddde0d3c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 8 Mar 2015 09:19:24 +0100 Subject: Add simple eating sound --- hunger.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'hunger.lua') diff --git a/hunger.lua b/hunger.lua index 71488a2..b7ae7b6 100644 --- a/hunger.lua +++ b/hunger.lua @@ -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 -- cgit v1.2.3