From c21e1b00ffbad4068283d3af1a282d1b6fbe27c1 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 15 Sep 2014 01:27:27 +1200 Subject: [PATCH] Fix coloring for disguisehelp declaring class --- src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java index 814c241e..07410c9f 100644 --- a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java @@ -218,7 +218,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { Class declaring = method.getDeclaringClass(); if (declaring == LivingWatcher.class) { methodColor = ChatColor.AQUA; - } else if (!(declaring.isAssignableFrom(FlagWatcher.class)) || declaring == FlagWatcher.class) { + } else if (!(FlagWatcher.class.isAssignableFrom(declaring)) || declaring == FlagWatcher.class) { methodColor = ChatColor.GRAY; } String str = method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN + valueType