diff --git a/src/main/kotlin/fr/minemobs/pepitedorlocalization/view/MainView.kt b/src/main/kotlin/fr/minemobs/pepitedorlocalization/view/MainView.kt index 0c98d54..41c4c68 100644 --- a/src/main/kotlin/fr/minemobs/pepitedorlocalization/view/MainView.kt +++ b/src/main/kotlin/fr/minemobs/pepitedorlocalization/view/MainView.kt @@ -83,6 +83,7 @@ class MainView : View("Pepite D'or Localization UI") { val writer = FileWriter(jsonFile, Charsets.UTF_8) gson.toJson(map.toList().sortedBy { (k, _) -> k }.toMap(), writer) writer.close() + map.clear() println("Added \"${key.value}\": \"${translatedString.value}\"") } }