Fix custom SoundGroup
This commit is contained in:
parent
c96a799e9f
commit
8aef2bffc0
@ -47,8 +47,8 @@ public class SoundGroup {
|
|||||||
sound = ReflectionManager.getCraftSound((Sound) sound);
|
sound = ReflectionManager.getCraftSound((Sound) sound);
|
||||||
} else if (sound instanceof String) {
|
} else if (sound instanceof String) {
|
||||||
sound = ReflectionManager.createSoundEffect((String) sound);
|
sound = ReflectionManager.createSoundEffect((String) sound);
|
||||||
} else if (!sound.getClass().getName().equals("SoundEffect")) {
|
} else if (!sound.getClass().getSimpleName().equals("SoundEffect")) {
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException("Unexpected " + sound.getClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sound == null) {
|
if (sound == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user