Skip to content

Commit

Permalink
Merge pull request #89 from Jupeyy/pr_vanilla_initial_args_no_perma_c…
Browse files Browse the repository at this point in the history
…hange

Don't write changes through initial args for game config to the output config.
  • Loading branch information
Jupeyy authored Jan 26, 2025
2 parents 74a6aab + 9aa9edb commit d03d8ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game/vanilla/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ pub mod state {
.config
.and_then(|config| serde_json::from_slice(&config).ok())
.unwrap_or_default();
let write_config = config.clone();

let (mut initial_args_res, remaining_cmds) = Self::handle_initial_args(
options
Expand Down Expand Up @@ -593,7 +594,7 @@ pub mod state {
chat_commands,
rcon_commands,

config: serde_json::to_vec(&config).ok(),
config: serde_json::to_vec(&write_config).ok(),
initial_rcon_response: initial_args_res,

mod_name: Self::get_mod_name_from_conf(config.game_type),
Expand Down

0 comments on commit d03d8ca

Please sign in to comment.