From 3ef24c3d1645fe1fc2a7065d1c2e132973ebc151 Mon Sep 17 00:00:00 2001 From: Eblo <7004497+Eblo@users.noreply.github.com> Date: Thu, 20 Nov 2025 19:54:38 -0500 Subject: [PATCH] Allow writing new blocks to config (#956) * Fix bug with writing new blocks to config Co-authored-by: Garrett Cox * Always assign the block regardless of key presence --------- Co-authored-by: Garrett Cox --- src/ship/config/Config.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ship/config/Config.cpp b/src/ship/config/Config.cpp index 654113e..f5b220c 100644 --- a/src/ship/config/Config.cpp +++ b/src/ship/config/Config.cpp @@ -154,9 +154,7 @@ void Config::SetBlock(const std::string& key, nlohmann::json block) { } } } else { - if (gjson.contains(key)) { - gjson[key] = block; - } + gjson[key] = block; } mFlattenedJson = gjson.flatten(); Save();