From 53904cca5fe03201e0ba197a8be2307d4032582b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Dec 2019 10:36:21 +0100 Subject: [PATCH] Fix broken eat sound position --- mods/hunger/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/hunger/init.lua b/mods/hunger/init.lua index b66ca8e..d7942fe 100644 --- a/mods/hunger/init.lua +++ b/mods/hunger/init.lua @@ -200,7 +200,7 @@ local function on_item_eat(hpdata, replace_with_item, itemstack, local headpos = player:get_pos() headpos.y = headpos.y + 1 - minetest.sound_play("hunger_eat", {pos = headpos, max_hear_distance = 8, object=player}) + minetest.sound_play("hunger_eat", {pos = headpos, max_hear_distance = 8}) particlespawners[name] = minetest.add_particlespawner( { @@ -342,7 +342,6 @@ local function fake_on_item_eat(hpdata, replace_with_item, itemstack, { pos = headpos, max_hear_distance = 8, - object = player, }) if not minetest.settings:get_bool("creative_mode") then