Now loops in order

This commit is contained in:
Andrew 2013-05-29 12:27:58 +12:00
parent f2f5f9630f
commit 2206652364

View file

@ -132,7 +132,9 @@ public enum DisguiseSound {
return SoundType.CANCEL;
if (disguiseSounds.get(SoundType.STEP) == Sound.STEP_GRASS && name.startsWith("step."))
return SoundType.STEP;
for (SoundType type : disguiseSounds.keySet()) {
for (SoundType type : SoundType.values()) {
if (!disguiseSounds.containsKey(type))
continue;
Sound s = disguiseSounds.get(type);
if (s != null)
if (CraftSound.getSound(s).equals(name))