Don't resave the cells if we're saving and using flatfile.
This commit is contained in:
parent
ad57ed767b
commit
72c29bb4ea
@ -707,10 +707,14 @@ public class JailIO {
|
|||||||
for(Jail j : pl.getJailManager().getJails()) {
|
for(Jail j : pl.getJailManager().getJails()) {
|
||||||
saveJail(j);
|
saveJail(j);
|
||||||
|
|
||||||
|
//Only save the cells individually
|
||||||
|
//when we are not using the flatfile storage
|
||||||
|
if(storage != 0) {
|
||||||
for(Cell c : j.getCells()) {
|
for(Cell c : j.getCells()) {
|
||||||
saveCell(j, c);
|
saveCell(j, c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pl.debug("Saving everything took " + (System.currentTimeMillis() - st) + " millis.");
|
pl.debug("Saving everything took " + (System.currentTimeMillis() - st) + " millis.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user