Skip to content

Commit

Permalink
add conformVisibility to properly prevent crashes with AT'd fields/me…
Browse files Browse the repository at this point in the history
…thods (notified by @Kaguya233qwq)
  • Loading branch information
mist475 committed Feb 9, 2024
1 parent f6416f5 commit 81527b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class MixinSoundManager {
* @reason Cache urls?
*/
@Overwrite
public static URL getURLForSoundResource(ResourceLocation p_148612_0_) {
private static URL getURLForSoundResource(ResourceLocation p_148612_0_) {
return SoundCache.getURLForSoundResource(p_148612_0_);
}

Expand All @@ -32,7 +32,7 @@ public static URL getURLForSoundResource(ResourceLocation p_148612_0_) {
* @reason Handle pitch ourselves
*/
@Overwrite
public float getNormalizedPitch(ISound p_148606_1_, SoundPoolEntry p_148606_2_) {
private 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_);
}

Expand All @@ -41,7 +41,7 @@ public float getNormalizedPitch(ISound p_148606_1_, SoundPoolEntry p_148606_2_)
* @reason Handle volume ourselves
*/
@Overwrite
public float getNormalizedVolume(ISound p_148594_1_, SoundPoolEntry p_148594_2_, SoundCategory p_148594_3_) {
private 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_);
}

Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/mixins.dsurround.early.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"package": "org.blockartistry.mod.DynSurround.mixins.early",
"refmap": "mixins.dsurround.refmap.json",
"target": "@env(DEFAULT)",
"compatibilityLevel": "JAVA_8"
"compatibilityLevel": "JAVA_8",
"overwrites": {
"conformVisibility": true
}
}

0 comments on commit 81527b3

Please sign in to comment.