Random pitch for eat/drink sounds

This commit is contained in:
Wuzzy 2019-03-09 00:10:59 +01:00
parent 6f9e178084
commit e37411dc13
2 changed files with 4 additions and 2 deletions

View file

@ -148,6 +148,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
pos = pos,
max_hear_distance = 12,
gain = 1.0,
pitch = 1 + math.random(-10, 10)*0.005,
})
else
-- Assume the item is a food
@ -186,6 +187,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
pos = pos,
max_hear_distance = 12,
gain = 1.0,
pitch = 1 + math.random(-10, 10)*0.005,
})
end