Fix Llama setColor and setCarpet and a sound error

This commit is contained in:
libraryaddict
2016-12-15 10:25:27 +13:00
parent 4db189704e
commit c6ad0c1466
3 changed files with 12 additions and 7 deletions

View File

@@ -175,8 +175,13 @@ public enum DisguiseSound {
DisguiseSound(Object hurt, Object[] step, Object death, Object idle, Object... sounds) {
addSound(hurt, SoundType.HURT);
for (Object obj : step)
addSound(obj, SoundType.STEP);
if (step != null) {
for (Object obj : step) {
addSound(obj, SoundType.STEP);
}
}
addSound(death, SoundType.DEATH);
addSound(idle, SoundType.IDLE);