From 464a2db39c18b90ece1f0b444c62bc081b631785 Mon Sep 17 00:00:00 2001 From: Mist475 Date: Thu, 11 Jan 2024 14:49:29 +0100 Subject: [PATCH] make sound manager methods public to fix compatability with MAtmos AT's --- .../mod/DynSurround/mixins/early/MixinSoundManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/blockartistry/mod/DynSurround/mixins/early/MixinSoundManager.java b/src/main/java/org/blockartistry/mod/DynSurround/mixins/early/MixinSoundManager.java index 689705a..502f411 100644 --- a/src/main/java/org/blockartistry/mod/DynSurround/mixins/early/MixinSoundManager.java +++ b/src/main/java/org/blockartistry/mod/DynSurround/mixins/early/MixinSoundManager.java @@ -23,7 +23,7 @@ public abstract class MixinSoundManager { * @reason Cache urls? */ @Overwrite - private static URL getURLForSoundResource(ResourceLocation p_148612_0_) { + public static URL getURLForSoundResource(ResourceLocation p_148612_0_) { return SoundCache.getURLForSoundResource(p_148612_0_); } @@ -32,7 +32,7 @@ private static URL getURLForSoundResource(ResourceLocation p_148612_0_) { * @reason Handle pitch ourselves */ @Overwrite - private float getNormalizedPitch(ISound p_148606_1_, SoundPoolEntry p_148606_2_) { + public float getNormalizedPitch(ISound p_148606_1_, SoundPoolEntry p_148606_2_) { return org.blockartistry.mod.DynSurround.client.sound.SoundManager.getNormalizedPitch(p_148606_1_, p_148606_2_); } @@ -41,7 +41,7 @@ private float getNormalizedPitch(ISound p_148606_1_, SoundPoolEntry p_148606_2_) * @reason Handle volume ourselves */ @Overwrite - private float getNormalizedVolume(ISound p_148594_1_, SoundPoolEntry p_148594_2_, SoundCategory p_148594_3_) { + public float getNormalizedVolume(ISound p_148594_1_, SoundPoolEntry p_148594_2_, SoundCategory p_148594_3_) { return org.blockartistry.mod.DynSurround.client.sound.SoundManager.getNormalizedVolume(p_148594_1_, p_148594_2_, p_148594_3_); }