Revert "Fix broken eat sound position"

This reverts commit 53904cca5f.
This commit is contained in:
Wuzzy 2020-01-18 15:48:21 +01:00
parent 6f1c3ebe84
commit bce380dd06
1 changed files with 2 additions and 1 deletions

View File

@ -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})
minetest.sound_play("hunger_eat", {pos = headpos, max_hear_distance = 8, object=player})
particlespawners[name] = minetest.add_particlespawner(
{
@ -342,6 +342,7 @@ 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