Skip to content

Commit

Permalink
Fix sound not working
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Apr 28, 2024
1 parent f3e0394 commit 237fa83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public Sound getSound(String par1Str, File par2File) {
@Override
public Sound addSound(String par1Str, URL url) {
try {
String key = par1Str;
par1Str = par1Str.substring(0, par1Str.indexOf("."));
if (this.field_2269) {
while(Character.isDigit(par1Str.charAt(par1Str.length() - 1))) {
Expand All @@ -54,7 +55,7 @@ public Sound addSound(String par1Str, URL url) {
this.soundMap.put(par1Str, new ArrayList());
}

Sound var4 = new Sound(par1Str, url);
Sound var4 = new Sound(key, url);
((List)this.soundMap.get(par1Str)).add(var4);
this.soundList.add(var4);
++this.soundCount;
Expand Down

0 comments on commit 237fa83

Please sign in to comment.