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);
|
result.add(this.readBooster(reader), cnt);
|
||||||
} else if ("precon".equals(nodename)) {
|
} else if ("precon".equals(nodename)) {
|
||||||
PreconDeck toAdd = this.readPreconDeck(reader);
|
PreconDeck toAdd = this.readPreconDeck(reader);
|
||||||
if ( null != toAdd )
|
if (null != toAdd) {
|
||||||
result.add(toAdd, cnt);
|
result.add(toAdd, cnt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
reader.moveUp();
|
reader.moveUp();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -343,10 +344,11 @@ public class QuestDataIO {
|
|||||||
|
|
||||||
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
||||||
final String name = reader.getAttribute("s");
|
final String name = reader.getAttribute("s");
|
||||||
for( PreconDeck d : QuestData.getPreconManager().getDecks() )
|
for (PreconDeck d : QuestData.getPreconManager().getDecks()) {
|
||||||
if ( name.equalsIgnoreCase( d.getName() ) )
|
if (name.equalsIgnoreCase(d.getName())) {
|
||||||
return d;
|
return d;
|
||||||
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user