mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix #46 🥳
This commit is contained in:
parent
9028578bc8
commit
a55ec20c74
@ -383,6 +383,7 @@ impl Server {
|
||||
.await
|
||||
});
|
||||
runtime.block_on(network.listen(ProtocolAddr::Tcp(settings.gameserver_address)))?;
|
||||
runtime.block_on(network.listen(ProtocolAddr::Mpsc(14004)))?;
|
||||
let connection_handler = ConnectionHandler::new(network, &runtime);
|
||||
|
||||
// Initiate real-time world simulation
|
||||
|
@ -69,16 +69,13 @@ impl PlayState for MainMenuState {
|
||||
if let Some(singleplayer) = &global_state.singleplayer {
|
||||
match singleplayer.receiver.try_recv() {
|
||||
Ok(Ok(runtime)) => {
|
||||
let server_settings = singleplayer.settings();
|
||||
// Attempt login after the server is finished initializing
|
||||
attempt_login(
|
||||
&mut global_state.settings,
|
||||
&mut global_state.info_message,
|
||||
"singleplayer".to_owned(),
|
||||
"".to_owned(),
|
||||
ClientConnArgs::Resolved(ConnectionArgs::IpAndPort(vec![
|
||||
server_settings.gameserver_address,
|
||||
])),
|
||||
ClientConnArgs::Resolved(ConnectionArgs::Mpsc(14004)),
|
||||
&mut self.client_init,
|
||||
Some(runtime),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user