From a1e62158e2012069ccc70e6ae6e670715aec82f8 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Wed, 8 Sep 2021 11:23:30 +0200 Subject: [PATCH] Add a workaround for "Check around synced code" problems --- OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs index e2fda1881e..1b689a5260 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs @@ -343,7 +343,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic void LoadMapIntoEditor(string uid) { - Game.LoadEditor(uid); + // 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(() => Game.LoadEditor(uid)); DiscordService.UpdateStatus(DiscordState.InMapEditor);