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 0cf30340..4728927e 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoManager.java @@ -58,6 +58,10 @@ public class ParamInfoManager { } public static ParamInfo getParamInfo(Class c) { + if (c.isAnonymousClass()) { + c = c.getSuperclass(); + } + for (ParamInfo info : getParamInfos()) { if (!info.isParam(c)) { continue; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java index fbd524fb..60bd429d 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java @@ -133,7 +133,7 @@ public class ParamInfoTypes { "Set how long the disguise lasts,