Skip to content

Commit

Permalink
Added check for modded sounds with no sound ??
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
LeoBeliik committed Jul 3, 2024
1 parent 12d38ef commit a017726
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 332 deletions.
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
Backported features / bugfixes to 1.20.1:
Dragon growl and thunder can now be muffled
Minecart sound when player inside now respect anchors
Anchors now properly shows its radius (thanks rmnvgr)
Fixed crash with some soundless modded sounds
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private void esm_captureTickableSoundVolume(SoundInstance sound, CallbackInfo ci
private float esm_setVolume(float volume) {
SoundInstance tempSound = esmSound;
//don't care about forbidden sounds or from the psb
if (tempSound != null && !esm_isForbidden(tempSound) && !PlaySoundButton.isFromPSB()) {
if (tempSound != null && tempSound.getSound() != null && !esm_isForbidden(tempSound) && !PlaySoundButton.isFromPSB()) {
ResourceLocation soundLocation = tempSound.getLocation();

//remove sound to prevent repeated sounds and maintains the desired order
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ licenseURL= "https://github.com/LeoBeliik/ExtremeSoundMuffler/blob/master/LICENS
issueTrackerURL="https://github.com/LeoBeliik/ExtremeSoundMuffler/issues"
[[mods]] #mandatory
modId = "extremesoundmuffler" #mandatory
version = "3.47" #mandatory
version = "3.48" #mandatory
displayName="Extreme Sound Muffler"
displayURL="https://www.curseforge.com/minecraft/mc-mods/extreme-sound-muffler"
logoFile= "esm_logo.png" #optional
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project
modversion = 3.47
modversion = 3.48
group=com.leobeliik.extremesoundmuffler

# Common
Expand Down
79 changes: 0 additions & 79 deletions neoforge/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion neoforge/src/main/resources/META-INF/MANIFEST.MF

This file was deleted.

30 changes: 0 additions & 30 deletions neoforge/src/main/resources/META-INF/neoforge.mods.toml

This file was deleted.

16 changes: 0 additions & 16 deletions neoforge/src/main/resources/extremesoundmuffler.mixins.json

This file was deleted.

0 comments on commit a017726

Please sign in to comment.