From c61cd4b6e0b6fe15af2509266e1d60014d72ed59 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 14 Sep 2014 18:04:05 +1200 Subject: [PATCH] Fix a method casting problem --- .../libraryaddict/disguise/utilities/BaseDisguiseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java index 74fc4ed7..70822e1f 100644 --- a/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java +++ b/src/me/libraryaddict/disguise/utilities/BaseDisguiseCommand.java @@ -581,7 +581,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor { usedOptions.add(methodName.toLowerCase()); } doCheck(optionPermissions, usedOptions); - if (methodToUse.getDeclaringClass().isAssignableFrom(FlagWatcher.class)) + if (FlagWatcher.class.isAssignableFrom(methodToUse.getDeclaringClass())) methodToUse.invoke(disguise.getWatcher(), value); else methodToUse.invoke(disguise, value);