mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-08-23 23:02:47 +02: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