Don't save the cell when we are loading it.

This commit is contained in:
graywolf336
2013-12-09 16:35:10 -06:00
parent 7743897b9d
commit 89dbc4d2be
3 changed files with 4 additions and 3 deletions

View File

@ -130,8 +130,8 @@ public class Jail {
}
/** Adds a cell to the Jail. */
public void addCell(Cell cell) {
plugin.getJailIO().saveJail(this);
public void addCell(Cell cell, boolean save) {
if(save) plugin.getJailIO().saveJail(this);
this.cells.put(cell.getName(), cell);
}