Use ephemeral sounds

This commit is contained in:
Wuzzy 2020-04-07 00:55:45 +02:00
parent b2c75acd68
commit c5e4ec5e27
61 changed files with 123 additions and 122 deletions

View file

@ -149,7 +149,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
gain = 1.0,
pitch = 1 + math.random(-10, 10)*0.005,
object = user,
})
}, true)
else
-- Assume the item is a food
-- Add eat particle effect and sound
@ -188,7 +188,7 @@ function mcl_hunger.item_eat(hunger_change, replace_with_item, poisontime, poiso
gain = 1.0,
pitch = 1 + math.random(-10, 10)*0.005,
object = user,
})
}, true)
end
if mcl_hunger.active and hunger_change then