Make the editor use an EchoConnection instead of a local server

This commit is contained in:
abcdefg30
2021-09-05 20:52:14 +02:00
committed by Matthias Mailänder
parent e0e219793f
commit 0b75991fbc
2 changed files with 16 additions and 19 deletions

View File

@@ -343,10 +343,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
void LoadMapIntoEditor(string uid)
{
ConnectionLogic.Connect(Game.CreateLocalServer(uid),
"",
() => { Game.LoadEditor(uid); },
() => { Game.CloseServer(); SwitchMenu(MenuType.MapEditor); });
Game.LoadEditor(uid);
DiscordService.UpdateStatus(DiscordState.InMapEditor);