No longer assume quests.yml contains custom1 quest, fixes #369. Bump

version number
This commit is contained in:
HappyPikachu 2016-07-06 20:58:33 -04:00
parent b4533024b3
commit 48ba30a616
2 changed files with 8 additions and 9 deletions

View File

@ -3,7 +3,7 @@
<groupId>me.blackvein.quests</groupId> <groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId> <artifactId>quests</artifactId>
<version>2.6.7</version> <version>2.6.8</version>
<name>quests</name> <name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url> <url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging> <packaging>jar</packaging>

View File

@ -1103,21 +1103,20 @@ public class QuestFactory implements ConversationAbandonedListener, ColorUtil {
} }
if (edit != null) { if (edit != null) {
ConfigurationSection questList = cs.getParent(); ConfigurationSection questList = cs.getParent();
for (String key : questList.getKeys(false)) { for (String key : questList.getKeys(false)) {
String name = questList.getString(key + ".name"); String name = questList.getString(key + ".name");
if (name != null) {
if (name.equalsIgnoreCase(edit)) { if (name.equalsIgnoreCase(edit)) {
questList.set(key, null); questList.set(key, null);
break; break;
} }
} }
}
} }
String name = (String) cc.getSessionData(CK.Q_NAME); String name = (String) cc.getSessionData(CK.Q_NAME);