From 7a4cb6b7f02707ce5aab3fb75723e6ae098c0329 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 11 May 2020 15:23:47 +1200 Subject: [PATCH] Fix dynamic name path --- .../disguise/utilities/params/ParamInfoManager.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java index bab219a3..c9e24d2a 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java @@ -114,7 +114,7 @@ public class ParamInfoManager { // Add these last as it's what we want to present to be called the least for (String methodName : new String[]{"setSelfDisguiseVisible", "setHideHeldItemFromSelf", "setHideArmorFromSelf", "setHearSelfDisguise", "setHidePlayer", "setExpires", "setNotifyBar", - "setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible"}) { + "setBossBarColor", "setBossBarStyle", "setTallDisguisesVisible", "setDynamicName"}) { try { Class cl = boolean.class; @@ -142,15 +142,6 @@ public class ParamInfoManager { } } - if (watcherClass == PlayerWatcher.class) { - try { - methods.add(PlayerDisguise.class.getMethod("setDynamicName", boolean.class)); - } - catch (NoSuchMethodException e) { - e.printStackTrace(); - } - } - return methods.toArray(new Method[0]); }