Fix dynamic name path

This commit is contained in:
libraryaddict 2020-05-11 15:23:47 +12:00
parent f6eb0f14b7
commit 7a4cb6b7f0
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -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]);
}