Skip to content

Commit

Permalink
ported to 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke100000 committed Feb 13, 2024
1 parent 07b5252 commit f4d0c4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void play(String language, String voice, float pitch, Entity entity, Stri
Identifier soundLocation = MCA.locate("tts_cache/" + language + "-" + voice + "/" + hash);
Sound sound = new Sound(soundLocation.getPath(), ConstantFloatProvider.create(1.0f), ConstantFloatProvider.create(1.0f), 1, Sound.RegistrationType.FILE, true, false, 16);
SingleWeighedSoundEvents weightedSoundEvents = new SingleWeighedSoundEvents(sound, soundLocation, "");
EntityTrackingSoundInstance instance = new CustomEntityBoundSoundInstance(weightedSoundEvents, new SoundEvent(soundLocation), SoundCategory.NEUTRAL, 1.0f, pitch, entity, random.nextLong());
EntityTrackingSoundInstance instance = new CustomEntityBoundSoundInstance(weightedSoundEvents, SoundEvent.of(soundLocation), SoundCategory.NEUTRAL, 1.0f, pitch, entity, random.nextLong());
client.getSoundManager().play(instance);
}

Expand Down

0 comments on commit f4d0c4f

Please sign in to comment.