mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 18:08:37 +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.entityId = getEntityId();
|
||||
entitySoundEffectPacket.soundId = sound.getId();
|
||||
entitySoundEffectPacket.soundCategory = soundCategory;
|
||||
entitySoundEffectPacket.soundSource = soundCategory.asSource();
|
||||
entitySoundEffectPacket.volume = volume;
|
||||
entitySoundEffectPacket.pitch = pitch;
|
||||
playerConnection.sendPacket(entitySoundEffectPacket);
|
||||
|
Loading…
Reference in New Issue
Block a user