Only try to jail in a cell if that jail has cells, resolves #51
This commit is contained in:
@ -153,6 +153,11 @@ public class Jail {
|
||||
public void removePrisoner(Prisoner p) {
|
||||
this.nocellPrisoners.remove(p.getUUID());
|
||||
}
|
||||
|
||||
/** Returns if there are any cells or not. */
|
||||
public boolean hasCells() {
|
||||
return !this.cells.isEmpty();
|
||||
}
|
||||
|
||||
/** Adds a cell to the Jail. */
|
||||
public void addCell(Cell cell, boolean save) {
|
||||
|
Reference in New Issue
Block a user