Reorganize how we save new cells, this way doesn't dupe cells any more.

This commit is contained in:
graywolf336
2014-02-21 09:32:11 -06:00
parent d2a6773522
commit 95e9c7c50a
2 changed files with 90 additions and 37 deletions

View File

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