mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -333,9 +333,10 @@ public class QuestDataIO {
|
||||
result.add(this.readBooster(reader), cnt);
|
||||
} else if ("precon".equals(nodename)) {
|
||||
PreconDeck toAdd = this.readPreconDeck(reader);
|
||||
if ( null != toAdd )
|
||||
if (null != toAdd) {
|
||||
result.add(toAdd, cnt);
|
||||
}
|
||||
}
|
||||
reader.moveUp();
|
||||
}
|
||||
return result;
|
||||
@@ -343,10 +344,11 @@ public class QuestDataIO {
|
||||
|
||||
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
||||
final String name = reader.getAttribute("s");
|
||||
for( PreconDeck d : QuestData.getPreconManager().getDecks() )
|
||||
if ( name.equalsIgnoreCase( d.getName() ) )
|
||||
for (PreconDeck d : QuestData.getPreconManager().getDecks()) {
|
||||
if (name.equalsIgnoreCase(d.getName())) {
|
||||
return d;
|
||||
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user