Derp, fix order

This commit is contained in:
fullwall 2012-10-15 20:55:54 +08:00
parent 2c3aaac021
commit 7ba586c4c1
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class TraitCommands {
Class<? extends Trait> clazz = CitizensAPI.getTraitFactory().getTraitClass(args.getString(0));
if (clazz == null)
throw new CommandException(Messages.TRAIT_NOT_FOUND);
if (!clazz.isAssignableFrom(CommandConfigurable.class))
if (!CommandConfigurable.class.isAssignableFrom(clazz))
throw new CommandException(Messages.TRAIT_NOT_CONFIGURABLE);
if (!npc.hasTrait(clazz))
throw new CommandException(Messages.TRAIT_NOT_FOUND_ON_NPC);