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:
graywolf336 2015-05-26 16:17:31 -05:00
parent 25835a1702
commit 9f6c0c4e49

View File

@ -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();
}