mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix a second crash for the same reason...
This commit is contained in:
@@ -413,12 +413,12 @@ public class DuelScene extends ForgeScene {
|
||||
if (missingCards > 0) //Replace unknown cards for a Wastes.
|
||||
mainSection.add(PLACEHOLDER_MAIN, missingCards);
|
||||
|
||||
if(!attractions.isEmpty()) {
|
||||
if(attractions != null && !attractions.isEmpty()) {
|
||||
int missingAttractions = 10 - attractions.countAll(); //TODO: These shouldn't be hard coded but DeckFormat's gonna need some reorganizing to fetch this dynamically
|
||||
if(missingAttractions > 0)
|
||||
attractions.add(PLACEHOLDER_ATTRACTION, missingAttractions);
|
||||
}
|
||||
if(!contraptions.isEmpty()) {
|
||||
if(contraptions != null && !contraptions.isEmpty()) {
|
||||
int missingContraptions = 15 - contraptions.countAll();
|
||||
if(missingContraptions > 0)
|
||||
contraptions.add(PLACEHOLDER_CONTRAPTION, missingContraptions);
|
||||
|
||||
Reference in New Issue
Block a user