Fixed another crash due to sounds playing off-thread

This commit is contained in:
Sollace 2021-08-19 01:30:07 +02:00
parent 51082fdf90
commit 90e4737910

View file

@ -306,7 +306,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
ticksToGlide = 20; ticksToGlide = 20;
} }
if (ticksInAir % 200 == 1) { if (ticksInAir % 200 == 1 && pony.isClient()) {
InteractionManager.instance().playLoopingSound(entity, InteractionManager.SOUND_GLIDING); InteractionManager.instance().playLoopingSound(entity, InteractionManager.SOUND_GLIDING);
} }