From 3c39a36c2683b27005f28ff614ebf5c0cf974336 Mon Sep 17 00:00:00 2001 From: sciwhiz12 Date: Thu, 24 Mar 2022 01:11:17 +0000 Subject: [PATCH] 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 --- .../minecraft/client/resources/sounds/SoundInstance.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/client/resources/sounds/SoundInstance.java.patch b/patches/minecraft/net/minecraft/client/resources/sounds/SoundInstance.java.patch index 45019c31f7..f726f7d953 100644 --- a/patches/minecraft/net/minecraft/client/resources/sounds/SoundInstance.java.patch +++ b/patches/minecraft/net/minecraft/client/resources/sounds/SoundInstance.java.patch @@ -8,6 +8,6 @@ + /*================================ FORGE START ================================================*/ + + default java.util.concurrent.CompletableFuture 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); + } }