mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-04-01 08:45:28 +02:00
Might as well force this onto the client thread
This commit is contained in:
parent
90e4737910
commit
425a987776
1 changed files with 21 additions and 19 deletions
|
@ -49,6 +49,7 @@ public class ClientInteractionManager extends InteractionManager {
|
|||
|
||||
@Override
|
||||
public void playLoopingSound(Entity source, int type) {
|
||||
client.execute(() -> {
|
||||
SoundManager soundManager = client.getSoundManager();
|
||||
|
||||
if (type == SOUND_EARS_RINGING && source instanceof LivingEntity) {
|
||||
|
@ -69,6 +70,7 @@ public class ClientInteractionManager extends InteractionManager {
|
|||
} else if (type == SOUND_GLIDING && source instanceof PlayerEntity) {
|
||||
soundManager.play(new MotionBasedSoundInstance(SoundEvents.ITEM_ELYTRA_FLYING, (PlayerEntity)source));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue