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