Skip to content

Commit

Permalink
Added check for modded sounds with no sound ??
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoBeliik committed Jul 3, 2024
1 parent adf7e1e commit 13dc028
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 382 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Dragon growl can now be muffled

Anchors now properly shows its radius (thanks rmnvgr)
Fixed crash with some soundless modded sounds
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ subprojects {
"version": modversion,
"group": project.group, //Else we target the task's group.
"minecraft_version": minecraft_version,
//"forge_version": forge_version,
//"forge_version_range": forge_version,
"minecraft_version_range": minecraft_version,
"fabric_version": fabric_version,
"fabric_loader_version": fabric_loader_version,
Expand Down
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
123 changes: 0 additions & 123 deletions forge/build.gradle

This file was deleted.

119 changes: 0 additions & 119 deletions forge/src/main/java/com/leobeliik/extremesoundmuffler/ForgeConfig.java

This file was deleted.

This file was deleted.

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

This file was deleted.

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

This file was deleted.

15 changes: 0 additions & 15 deletions forge/src/main/resources/extremesoundmuffler.mixins.json

This file was deleted.

Loading

0 comments on commit 13dc028

Please sign in to comment.