If custom sound group not found, revert to default sound group

This commit is contained in:
libraryaddict 2020-05-24 13:38:29 +12:00
parent e853d02c7e
commit ca33fdb81a
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -140,7 +140,11 @@ public class SoundGroup {
public static SoundGroup getGroup(Disguise disguise) { public static SoundGroup getGroup(Disguise disguise) {
if (disguise.getSoundGroup() != null) { if (disguise.getSoundGroup() != null) {
return getGroup(disguise.getSoundGroup()); SoundGroup dSoundGroup = getGroup(disguise.getSoundGroup());
if (dSoundGroup != null) {
return dSoundGroup;
}
} }
return getGroup(disguise.getType().name()); return getGroup(disguise.getType().name());