forked from External/mage
Improved new version cleanup and more:
* fixed db cleanup on new version (sets + cards); * fixed empty sets list after update; * fixed NPE errors in sets list on new install/version; * added joke sets filter to deckeditor.
This commit is contained in:
parent
554e8076cf
commit
f01b3d3ca3
11 changed files with 243 additions and 112 deletions
|
|
@ -4,6 +4,7 @@ import mage.cards.ExpansionSet;
|
|||
import mage.cards.Sets;
|
||||
import mage.cards.repository.CardScanner;
|
||||
import mage.cards.repository.PluginClassloaderRegistery;
|
||||
import mage.cards.repository.RepositoryUtil;
|
||||
import mage.game.match.MatchType;
|
||||
import mage.game.tournament.TournamentType;
|
||||
import mage.interfaces.MageServer;
|
||||
|
|
@ -88,6 +89,10 @@ public final class Main {
|
|||
logger.info("Done.");
|
||||
}
|
||||
|
||||
// db init and updates checks (e.g. cleanup cards db on new version)
|
||||
RepositoryUtil.bootstrapLocalDb();
|
||||
logger.info("Done.");
|
||||
|
||||
logger.info("Loading extension packages...");
|
||||
if (!extensionFolder.exists()) {
|
||||
if (!extensionFolder.mkdirs()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue