Make Player use SoundCategory#asSource

This commit is contained in:
Kieran Wallbanks 2021-03-25 12:30:09 +00:00
parent 7cedde0502
commit cfba291522

View File

@ -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);