From 6b738fd5f6267779c22f24aede6363f72aa75b7d Mon Sep 17 00:00:00 2001 From: LMH01 Date: Thu, 9 Mar 2023 20:26:05 +0100 Subject: [PATCH] Fixed issue that caused multiple themes getting written in the same line --- docs/changelog.md | 1 + docs/changelog_dev.md | 1 + .../com/github/lmh01/mgt2mt/content/manager/ThemeManager.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 9298ab2e..d56262a4 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -28,6 +28,7 @@ - Hardware Feature: need internet was not applied when hardware feature was added - Hardware Feature import/export: NEEDINTERNET parameter was not properly read - Platform import/export: STARTPLATFORM parameter was not properly read +- Theme import: When multiple themes where imported simultaneously they where all written in the same line in the german theme file ## [v4.8.0](https://github.com/LMH01/MGT2_Mod_Tool/releases/tag/v4.8.0) (Latest Version) diff --git a/docs/changelog_dev.md b/docs/changelog_dev.md index 2ead2393..85ee731f 100644 --- a/docs/changelog_dev.md +++ b/docs/changelog_dev.md @@ -5,6 +5,7 @@ ### Bug fixes - Fixed #132 - Genre import: Good/bad gameplay features, and good themes where not imported correctly - Fixed #133 - Licence import/export: Release year was not read properly +- Theme import: When multiple themes where imported simultaneously they where all written in the same line in the german theme file ## [v4.9.0-beta6] diff --git a/src/main/java/com/github/lmh01/mgt2mt/content/manager/ThemeManager.java b/src/main/java/com/github/lmh01/mgt2mt/content/manager/ThemeManager.java index 7c55b22d..692cacf8 100644 --- a/src/main/java/com/github/lmh01/mgt2mt/content/manager/ThemeManager.java +++ b/src/main/java/com/github/lmh01/mgt2mt/content/manager/ThemeManager.java @@ -98,8 +98,8 @@ public void editTextFiles(List contents, ContentAction acti } } if (action.equals(ContentAction.ADD_MOD)) { - bw.write("\r\n"); for (AbstractBaseContent content : contents) { + bw.write("\r\n"); if (content instanceof Theme) { if (string.equals("GE")) { bw.write(((Theme) content).getLine());