mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-04 13:54:35 +01:00
Fix error for disguise parser and string
This commit is contained in:
parent
3162f3b35e
commit
01af19b5aa
@ -406,7 +406,13 @@ public class DisguiseParser {
|
||||
String valueString;
|
||||
|
||||
if (ourValue != null) {
|
||||
ParamInfo paramInfo = ParamInfoManager.getParamInfo(method.getReturnType());
|
||||
ParamInfo paramInfo;
|
||||
|
||||
if (ourValue instanceof String) {
|
||||
paramInfo = ParamInfoManager.getParamInfo(String.class);
|
||||
} else {
|
||||
paramInfo = ParamInfoManager.getParamInfo(method.getReturnType());
|
||||
}
|
||||
|
||||
if (paramInfo == null) {
|
||||
LibsDisguises.getInstance().getLogger()
|
||||
@ -530,7 +536,13 @@ public class DisguiseParser {
|
||||
String valueString;
|
||||
|
||||
if (ourValue != null) {
|
||||
ParamInfo paramInfo = ParamInfoManager.getParamInfo(getter.getReturnType());
|
||||
ParamInfo paramInfo;
|
||||
|
||||
if (ourValue instanceof String) {
|
||||
paramInfo = ParamInfoManager.getParamInfo(String.class);
|
||||
} else {
|
||||
paramInfo = ParamInfoManager.getParamInfo(getter.getReturnType());
|
||||
}
|
||||
|
||||
if (paramInfo == null) {
|
||||
LibsDisguises.getInstance().getLogger()
|
||||
|
Loading…
Reference in New Issue
Block a user