Properly check for secondary Heroes class, fixes #109. Untested

This commit is contained in:
HappyPikachu 2018-01-04 00:07:19 -05:00
parent be2f8d6d60
commit 640b9893c0

View File

@ -3915,7 +3915,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
public boolean testSecondaryHeroesClass(String secondaryClass, UUID uuid) {
Hero hero = getHero(uuid);
return hero.getHeroClass().getName().equalsIgnoreCase(secondaryClass);
return hero.getSecondClass().getName().equalsIgnoreCase(secondaryClass);
}
public void updateData() {