Fixed pitch and volume being swapped for certain sounds

This commit is contained in:
Sollace 2022-10-09 18:05:54 +02:00
parent e78c03be98
commit 42cbe2b51f

View file

@ -29,7 +29,7 @@ public interface SoundEmitter {
playSoundAt(entity, sound, entity.getSoundCategory(), volume, pitch); playSoundAt(entity, sound, entity.getSoundCategory(), volume, pitch);
} }
static void playSoundAt(Entity entity, SoundEvent sound, SoundCategory category, float pitch, float volume) { static void playSoundAt(Entity entity, SoundEvent sound, SoundCategory category, float volume, float pitch) {
entity.world.playSound(null, entity.getX(), entity.getY(), entity.getZ(), sound, category, volume, pitch); entity.world.playSound(null, entity.getX(), entity.getY(), entity.getZ(), sound, category, volume, pitch);
} }