mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Link eating sound back to object again
This commit is contained in:
parent
3118673116
commit
604e1c4d19
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue