mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +01:00
Fix issue when challenges are not saved in database after importing from web or default file set.
This commit is contained in:
parent
6203b92f2e
commit
679fe48871
@ -126,7 +126,8 @@ public class ChallengesImportManager
|
||||
return false;
|
||||
}
|
||||
|
||||
this.addon.getChallengesManager().save();
|
||||
this.addon.getChallengesManager().saveChallenges();
|
||||
this.addon.getChallengesManager().saveLevels();
|
||||
|
||||
if (removeAtEnd)
|
||||
{
|
||||
@ -203,7 +204,8 @@ public class ChallengesImportManager
|
||||
return false;
|
||||
}
|
||||
|
||||
this.addon.getChallengesManager().save();
|
||||
this.addon.getChallengesManager().saveChallenges();
|
||||
this.addon.getChallengesManager().saveLevels();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -861,7 +861,7 @@ public class ChallengesManager
|
||||
/**
|
||||
* This method saves all challenges to database.
|
||||
*/
|
||||
private void saveChallenges()
|
||||
public void saveChallenges()
|
||||
{
|
||||
this.challengeCacheData.values().forEach(this::saveChallenge);
|
||||
}
|
||||
@ -880,7 +880,7 @@ public class ChallengesManager
|
||||
/**
|
||||
* This method saves all levels to database.
|
||||
*/
|
||||
private void saveLevels()
|
||||
public void saveLevels()
|
||||
{
|
||||
this.levelCacheData.values().forEach(this::saveLevel);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user