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:
		| @@ -504,6 +504,8 @@ public class PrisonerManager { | |||||||
|                     Util.restoreInventory(player, prisoner); |                     Util.restoreInventory(player, prisoner); | ||||||
|                 } |                 } | ||||||
|             }else { |             }else { | ||||||
|  |                 //Clear out the cell's chest just in case | ||||||
|  |                 //they decided to store something there | ||||||
|                 if(cell.hasChest()) cell.getChest().getInventory().clear(); |                 if(cell.hasChest()) cell.getChest().getInventory().clear(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 graywolf336
					graywolf336