mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fixed precons deserialization in questshop
This commit is contained in:
@@ -326,7 +326,8 @@ 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);
|
||||||
result.add(toAdd, cnt);
|
if ( null != toAdd )
|
||||||
|
result.add(toAdd, cnt);
|
||||||
}
|
}
|
||||||
reader.moveUp();
|
reader.moveUp();
|
||||||
}
|
}
|
||||||
@@ -334,7 +335,7 @@ public class QuestDataIO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
private PreconDeck readPreconDeck(final HierarchicalStreamReader reader) {
|
||||||
final String name = reader.getAttribute("n");
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user