mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-25 09:31:41 +01:00
Make Player use SoundCategory#asSource
This commit is contained in:
parent
7cedde0502
commit
cfba291522
@ -911,7 +911,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
EntitySoundEffectPacket entitySoundEffectPacket = new EntitySoundEffectPacket();
|
EntitySoundEffectPacket entitySoundEffectPacket = new EntitySoundEffectPacket();
|
||||||
entitySoundEffectPacket.entityId = getEntityId();
|
entitySoundEffectPacket.entityId = getEntityId();
|
||||||
entitySoundEffectPacket.soundId = sound.getId();
|
entitySoundEffectPacket.soundId = sound.getId();
|
||||||
entitySoundEffectPacket.soundCategory = soundCategory;
|
entitySoundEffectPacket.soundSource = soundCategory.asSource();
|
||||||
entitySoundEffectPacket.volume = volume;
|
entitySoundEffectPacket.volume = volume;
|
||||||
entitySoundEffectPacket.pitch = pitch;
|
entitySoundEffectPacket.pitch = pitch;
|
||||||
playerConnection.sendPacket(entitySoundEffectPacket);
|
playerConnection.sendPacket(entitySoundEffectPacket);
|
||||||
|
Loading…
Reference in New Issue
Block a user