From 207e4574fdb833a4fd205bcb5fcaa011ed94ed0a Mon Sep 17 00:00:00 2001 From: NavidK0 Date: Mon, 14 Mar 2016 03:28:48 -0400 Subject: [PATCH] Welp, disable disguise sounds until they can be fixed later --- .../disguise/utilities/DisguiseSound.java | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java index 55356e67..8fe016e1 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java @@ -78,11 +78,13 @@ public enum DisguiseSound { } public static DisguiseSound getType(String name) { - try { - return valueOf(name); - } catch (Exception ex) { - return null; - } + //TODO: FIX the disguise sounds + return null; +// try { +// return valueOf(name); +// } catch (Exception ex) { +// return null; +// } } private HashSet cancelSounds = new HashSet<>(); @@ -98,13 +100,6 @@ public enum DisguiseSound { 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) {