If custom sound group not found, revert to default sound group
This commit is contained in:
parent
e853d02c7e
commit
ca33fdb81a
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user