Fix broken eat sound position
This commit is contained in:
parent
4d4048964c
commit
53904cca5f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user