Don't allow prisoners to be jailed into the same cell as someone else.

This will prevent overriding inventories in cell chests. When we tell
them the destination cell already has a prisoner in it, we try to find
the first empty cell in that jail but if all the jail's cells are full
then we tell them that as well.
This commit is contained in:
graywolf336
2013-12-27 13:16:21 -06:00
parent 5e4bc77579
commit 07f3d85a2a
2 changed files with 12 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class Cell {
return this.p;
}
/** Nullifies the prisoner data. */
public void removePrisoner() {
this.p = null;
}