Fix incorrect method used in getStream (#8532)

The original correct method is getPath, but the patch uses getLocation.
The former is the actual resource path to the sound OGG file, while the
latter is the sound's location.

Fixes #8531
This commit is contained in:
sciwhiz12 authored and GitHub committed 2022-03-24 01:11:17 +00:00
1 parent b0a64ff8ac
commit 3c39a36c26
1 file changed
+1 -1
@@ -8,6 +8,6 @@
+ /*================================ FORGE START ================================================*/
+
+ default java.util.concurrent.CompletableFuture<net.minecraft.client.sounds.AudioStream> getStream(net.minecraft.client.sounds.SoundBufferLibrary soundBuffers, Sound sound, boolean looping) {
+ return soundBuffers.m_120204_(sound.m_119787_(), looping);
+ return soundBuffers.m_120204_(sound.m_119790_(), looping);
+ }
}