From 777d966958454705f4dbe1ff11e601b1a32f0a1a Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Wed, 8 Sep 2021 11:22:17 +0200 Subject: [PATCH] Remove unnecessary server creation when creating a new map --- OpenRA.Mods.Common/Widgets/Logic/Editor/NewMapLogic.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Editor/NewMapLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Editor/NewMapLogic.cs index 77da02b4aa..fbcc81dc26 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Editor/NewMapLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Editor/NewMapLogic.cs @@ -72,12 +72,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic { // HACK: Work around a synced-code change check. // It's not clear why this is needed here, but not in the other places that load maps. - Game.RunAfterTick(() => - { - ConnectionLogic.Connect(Game.CreateLocalServer(uid), "", - () => Game.LoadEditor(uid), - () => { Game.CloseServer(); onExit(); }); - }); + Game.RunAfterTick(() => Game.LoadEditor(uid)); Ui.CloseWindow(); onSelect(uid);