- Fixed an issue with loading quest challenges from the wrong folder.

This commit is contained in:
Agetian
2018-12-13 13:25:10 +03:00
parent f09ec13428
commit ec77e89516

View File

@@ -477,9 +477,9 @@ public class QuestController {
allChallenges = QuestChallengeGenerator.generateChallenges(); allChallenges = QuestChallengeGenerator.generateChallenges();
return; return;
} else if (world.isCustom()) { } else if (world.isCustom()) {
path = world.getChallengesDir() == null ? ForgeConstants.DEFAULT_CHALLENGES_DIR : ForgeConstants.QUEST_WORLD_DIR + world.getChallengesDir();
} else {
path = world.getChallengesDir() == null ? ForgeConstants.DEFAULT_CHALLENGES_DIR : ForgeConstants.USER_QUEST_WORLD_DIR + world.getChallengesDir(); path = world.getChallengesDir() == null ? ForgeConstants.DEFAULT_CHALLENGES_DIR : ForgeConstants.USER_QUEST_WORLD_DIR + world.getChallengesDir();
} else {
path = world.getChallengesDir() == null ? ForgeConstants.DEFAULT_CHALLENGES_DIR : ForgeConstants.QUEST_WORLD_DIR + world.getChallengesDir();
} }
} }