mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
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) {
|
||||
if (disguise.getSoundGroup() != null) {
|
||||
return getGroup(disguise.getSoundGroup());
|
||||
SoundGroup dSoundGroup = getGroup(disguise.getSoundGroup());
|
||||
|
||||
if (dSoundGroup != null) {
|
||||
return dSoundGroup;
|
||||
}
|
||||
}
|
||||
|
||||
return getGroup(disguise.getType().name());
|
||||
|
Loading…
Reference in New Issue
Block a user