parent
6f1c3ebe84
commit
bce380dd06
@ -200,7 +200,7 @@ local function on_item_eat(hpdata, replace_with_item, itemstack,
|
|||||||
local headpos = player:get_pos()
|
local headpos = player:get_pos()
|
||||||
|
|
||||||
headpos.y = headpos.y + 1
|
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(
|
particlespawners[name] = minetest.add_particlespawner(
|
||||||
{
|
{
|
||||||
@ -342,6 +342,7 @@ local function fake_on_item_eat(hpdata, replace_with_item, itemstack,
|
|||||||
{
|
{
|
||||||
pos = headpos,
|
pos = headpos,
|
||||||
max_hear_distance = 8,
|
max_hear_distance = 8,
|
||||||
|
object = player,
|
||||||
})
|
})
|
||||||
|
|
||||||
if not minetest.settings:get_bool("creative_mode") then
|
if not minetest.settings:get_bool("creative_mode") then
|
||||||
|
Loading…
Reference in New Issue
Block a user