From 90e47379108e08bf86a10651fcd1e9cef5d93bb5 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 19 Aug 2021 01:30:07 +0200 Subject: [PATCH] Fixed another crash due to sounds playing off-thread --- .../minelittlepony/unicopia/entity/player/PlayerPhysics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java index 84d76149..098b527a 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/PlayerPhysics.java @@ -306,7 +306,7 @@ public class PlayerPhysics extends EntityPhysics implements Tickab ticksToGlide = 20; } - if (ticksInAir % 200 == 1) { + if (ticksInAir % 200 == 1 && pony.isClient()) { InteractionManager.instance().playLoopingSound(entity, InteractionManager.SOUND_GLIDING); }