mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
Fix a method casting problem
This commit is contained in:
parent
385db0dd55
commit
c61cd4b6e0
@ -581,7 +581,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
|||||||
usedOptions.add(methodName.toLowerCase());
|
usedOptions.add(methodName.toLowerCase());
|
||||||
}
|
}
|
||||||
doCheck(optionPermissions, usedOptions);
|
doCheck(optionPermissions, usedOptions);
|
||||||
if (methodToUse.getDeclaringClass().isAssignableFrom(FlagWatcher.class))
|
if (FlagWatcher.class.isAssignableFrom(methodToUse.getDeclaringClass()))
|
||||||
methodToUse.invoke(disguise.getWatcher(), value);
|
methodToUse.invoke(disguise.getWatcher(), value);
|
||||||
else
|
else
|
||||||
methodToUse.invoke(disguise, value);
|
methodToUse.invoke(disguise, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user