From a068b5cc03d5309ed5c92880d6f5b24d92c19ca6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 8 Oct 2022 17:12:36 +0200 Subject: [PATCH] Fixed heartbeat sound effect not playing --- src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java b/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java index b63c61cb..bf3acdb3 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/UHud.java @@ -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) ); }