From d2b6035fd3855af4cb75456786ee53e33dbba59e Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 5 Mar 2015 16:12:06 +0100 Subject: [PATCH] MassiveCore change --- src/com/massivecraft/factions/update/UpdateUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/massivecraft/factions/update/UpdateUtil.java b/src/com/massivecraft/factions/update/UpdateUtil.java index 0183df5f..e2084a1b 100644 --- a/src/com/massivecraft/factions/update/UpdateUtil.java +++ b/src/com/massivecraft/factions/update/UpdateUtil.java @@ -60,18 +60,18 @@ public class UpdateUtil // The old mplayer data we don't care much for. // Could even delete it but let's just move it out of the way. - db.getDriver().renameColl(db, Const.COLLECTION_MPLAYER, "old_"+Const.COLLECTION_MPLAYER); + db.renameColl(Const.COLLECTION_MPLAYER, "old_"+Const.COLLECTION_MPLAYER); - db.getDriver().renameColl(db, "factions_board@" + universe, Const.COLLECTION_BOARD); - db.getDriver().renameColl(db, "factions_faction@" + universe, Const.COLLECTION_FACTION); - db.getDriver().renameColl(db, "factions_uplayer@" + universe, Const.COLLECTION_MPLAYER); + db.renameColl("factions_board@" + universe, Const.COLLECTION_BOARD); + db.renameColl("factions_faction@" + universe, Const.COLLECTION_FACTION); + db.renameColl("factions_uplayer@" + universe, Const.COLLECTION_MPLAYER); // ... rename remaining collections ... for (String collname : db.getCollnames()) { if (!collname.startsWith("factions_")) continue; if (!collname.contains("@")) continue; - db.getDriver().renameColl(db, collname, "old_" + collname); + db.renameColl(collname, "old_" + collname); } } @@ -104,7 +104,7 @@ public class UpdateUtil { Coll coll = new Coll("factions_faction@"+universe, Object.class, MStore.getDb(), Factions.get()); - Collection ids = MStore.getDb().getDriver().getIds(coll); + Collection ids = MStore.getDb().getIds(coll); return ids.size(); }