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,8 +707,12 @@ public class JailIO {
for(Jail j : pl.getJailManager().getJails()) {
saveJail(j);
for(Cell c : j.getCells()) {
saveCell(j, c);
//Only save the cells individually
//when we are not using the flatfile storage
if(storage != 0) {
for(Cell c : j.getCells()) {
saveCell(j, c);
}
}
}