Clean up adding a player to a cell.

This commit is contained in:
graywolf336 2013-12-11 15:23:29 -06:00
parent 89dbc4d2be
commit 9e950b56e4

View File

@ -203,10 +203,8 @@ public class JailIO {
Float.valueOf(arr[5])));
}
Prisoner p = null;
if(flat.contains(cellNode + "prisoner")) {
p = new Prisoner(flat.getString(cellNode + "prisoner.name"), flat.getBoolean(cellNode + "prisoner.muted"), flat.getLong(cellNode + "prisoner.time"));
c.setPrisoner(p);
c.setPrisoner(new Prisoner(flat.getString(cellNode + "prisoner.name"), flat.getBoolean(cellNode + "prisoner.muted"), flat.getLong(cellNode + "prisoner.time")));
}
j.addCell(c, false);