Welp, disable disguise sounds until they can be fixed later

This commit is contained in:
NavidK0 2016-03-14 03:28:48 -04:00
parent bd7862fd3e
commit 207e4574fd

View File

@ -78,11 +78,13 @@ public enum DisguiseSound {
} }
public static DisguiseSound getType(String name) { public static DisguiseSound getType(String name) {
try { //TODO: FIX the disguise sounds
return valueOf(name); return null;
} catch (Exception ex) { // try {
return null; // return valueOf(name);
} // } catch (Exception ex) {
// return null;
// }
} }
private HashSet<String> cancelSounds = new HashSet<>(); private HashSet<String> cancelSounds = new HashSet<>();
@ -98,13 +100,6 @@ public enum DisguiseSound {
addSound(obj, SoundType.CANCEL); addSound(obj, SoundType.CANCEL);
} }
//TODO: Remove this temporary fix later
for (Sound sound : Sound.values()) {
String string = ReflectionManager.getCraftSound(sound);
if (!disguiseSounds.containsValue(string) && !cancelSounds.contains(string)) {
cancelSounds.add(string);
}
}
} }
private void addSound(Object sound, SoundType type) { private void addSound(Object sound, SoundType type) {