mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed heartbeat sound effect not playing
This commit is contained in:
parent
320f78a1b8
commit
a068b5cc03
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ public class UHud extends DrawableHelper {
|
|||
if (exhaustion > 0.5F && (heartbeatSound == null || heartbeatSound.isDone())) {
|
||||
client.getSoundManager().play(
|
||||
heartbeatSound = new LoopingSoundInstance<>(client.player, player -> {
|
||||
return partySound != null && Pony.of(player).getMagicalReserves().getExhaustion().getPercentFill() > 0.5F;
|
||||
return partySound == null && Pony.of(player).getMagicalReserves().getExhaustion().getPercentFill() > 0.5F;
|
||||
}, USounds.ENTITY_PLAYER_HEARTBEAT, 1, 1, client.world.random)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue