From 447f4a3c6c9df0694a9ad839020f0092f7e5054f Mon Sep 17 00:00:00 2001 From: LMH01 Date: Thu, 9 Mar 2023 19:57:43 +0100 Subject: [PATCH] Fixed NullPointerException caused by fixing #132 --- .../com/github/lmh01/mgt2mt/content/manager/GenreManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/lmh01/mgt2mt/content/manager/GenreManager.java b/src/main/java/com/github/lmh01/mgt2mt/content/manager/GenreManager.java index a790f38b..4cfda11a 100644 --- a/src/main/java/com/github/lmh01/mgt2mt/content/manager/GenreManager.java +++ b/src/main/java/com/github/lmh01/mgt2mt/content/manager/GenreManager.java @@ -50,13 +50,13 @@ public void addContent(AbstractBaseContent content) throws ModProcessingExceptio @Override public void addContents(List 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