mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'remove-net-settings-singleplayer' into 'master'
Stop saving singleplayer settings to network settings See merge request veloren/veloren!157 Former-commit-id: 77ee0dad47bd0af10497d3db0d5a196e51d6211d
This commit is contained in:
commit
9a31c20662
@ -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