From 604e1c4d195b0fbf703911da077bb2456ada6eff Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 18 Feb 2020 23:53:33 +0100 Subject: [PATCH] Link eating sound back to object again --- mods/PLAYER/mcl_hunger/hunger.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mods/PLAYER/mcl_hunger/hunger.lua b/mods/PLAYER/mcl_hunger/hunger.lua index 53799a0512..eacec1bc5d 100644 --- a/mods/PLAYER/mcl_hunger/hunger.lua +++ b/mods/PLAYER/mcl_hunger/hunger.lua @@ -148,9 +148,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso max_hear_distance = 12, gain = 1.0, pitch = 1 + math.random(-10, 10)*0.005, - -- FIXME: Should be linked to object, but it's broken in Minetest 5.1.0 - -- See https://github.com/minetest/minetest/issues/9183 - pos = pos, + object = user, }) else -- Assume the item is a food @@ -189,9 +187,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso max_hear_distance = 12, gain = 1.0, pitch = 1 + math.random(-10, 10)*0.005, - -- FIXME: Should be linked to object, but it's broken in Minetest 5.1.0 - -- See https://github.com/minetest/minetest/issues/9183 - pos = pos, + object = user, }) end