mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Stop saving singleplayer settings to network settings
Former-commit-id: 06d43eda771e03b6b30d4bdc8ab01d2b3cd6efc2
This commit is contained in:
parent
914ed1242d
commit
8de6d5ad3d
@ -46,14 +46,6 @@ impl PlayState for StartSingleplayerState {
|
||||
}
|
||||
};
|
||||
|
||||
let mut net_settings = &mut global_state.settings.networking;
|
||||
net_settings.username = username.clone();
|
||||
if !net_settings.servers.contains(&server_address) {
|
||||
net_settings.servers.push(server_address.clone());
|
||||
}
|
||||
// TODO: Handle this result.
|
||||
global_state.settings.save_to_file();
|
||||
|
||||
PlayStateResult::Push(Box::new(CharSelectionState::new(
|
||||
&mut global_state.window,
|
||||
std::rc::Rc::new(std::cell::RefCell::new(client)),
|
||||
|
Loading…
Reference in New Issue
Block a user