Clean up adding a player to a cell.
This commit is contained in:
parent
89dbc4d2be
commit
9e950b56e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user