forked from VoxeLibre/VoxeLibre
Add workaround for broken eat sound
This commit is contained in:
parent
89ba84a456
commit
7175ffb975
|
@ -148,7 +148,9 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
|
||||||
max_hear_distance = 12,
|
max_hear_distance = 12,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
pitch = 1 + math.random(-10, 10)*0.005,
|
pitch = 1 + math.random(-10, 10)*0.005,
|
||||||
object = user,
|
-- 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,
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
-- Assume the item is a food
|
-- Assume the item is a food
|
||||||
|
@ -187,7 +189,9 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
|
||||||
max_hear_distance = 12,
|
max_hear_distance = 12,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
pitch = 1 + math.random(-10, 10)*0.005,
|
pitch = 1 + math.random(-10, 10)*0.005,
|
||||||
object = user,
|
-- 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,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue