Skip to content

Commit

Permalink
Fixed NullPointerException caused by fixing #132
Browse files Browse the repository at this point in the history
  • Loading branch information
LMH01 committed Mar 9, 2023
1 parent 93f4d18 commit 447f4a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ public void addContent(AbstractBaseContent content) throws ModProcessingExceptio

@Override
public void addContents(List<AbstractBaseContent> contents) throws ModProcessingException {
super.addContents(contents);
for (AbstractBaseContent content : contents) {
Genre genre = (Genre)content;
ThemeManager.editGenreAllocation(genre.id, true, genre.compatibleThemes);
GameplayFeatureManager.INSTANCE.addGenreId(genre.badGameplayFeatures, genre.id, false);
GameplayFeatureManager.INSTANCE.addGenreId(genre.goodGameplayFeatures, genre.id, true);
}
super.addContents(contents);
}

@Override
Expand Down

0 comments on commit 447f4a3

Please sign in to comment.