Comment on why we clear cell's chest
Let people know in the source code why we clear out a cell's chest when a prisoner in there is released.
This commit is contained in:
parent
25835a1702
commit
9f6c0c4e49
@ -504,6 +504,8 @@ public class PrisonerManager {
|
||||
Util.restoreInventory(player, prisoner);
|
||||
}
|
||||
}else {
|
||||
//Clear out the cell's chest just in case
|
||||
//they decided to store something there
|
||||
if(cell.hasChest()) cell.getChest().getInventory().clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user