Don't resave the cells if we're saving and using flatfile.

This commit is contained in:
graywolf336 2015-01-27 18:37:04 -06:00
parent ad57ed767b
commit 72c29bb4ea

View File

@ -707,10 +707,14 @@ public class JailIO {
for(Jail j : pl.getJailManager().getJails()) {
saveJail(j);
//Only save the cells individually
//when we are not using the flatfile storage
if(storage != 0) {
for(Cell c : j.getCells()) {
saveCell(j, c);
}
}
}
pl.debug("Saving everything took " + (System.currentTimeMillis() - st) + " millis.");
}