forked from Upstream/mmocore
Fixed Issue related to custom sound being case sensitive.
This commit is contained in:
parent
c0f3ac0638
commit
004a2b8673
@ -36,7 +36,7 @@ public class SoundObject {
|
||||
}
|
||||
|
||||
this.sound = sound;
|
||||
this.key = key;
|
||||
this.key = key.toLowerCase();
|
||||
|
||||
volume = split.length > 1 ? Float.parseFloat(split[1]) : 1;
|
||||
pitch = split.length > 2 ? Float.parseFloat(split[2]) : 1;
|
||||
@ -54,7 +54,7 @@ public class SoundObject {
|
||||
}
|
||||
|
||||
this.sound = sound;
|
||||
this.key = key;
|
||||
this.key = key.toLowerCase();
|
||||
|
||||
volume = (float) config.getDouble("volume", 1);
|
||||
pitch = (float) config.getDouble("pitch", 1);
|
||||
|
Loading…
Reference in New Issue
Block a user