Add a workaround for "Check around synced code" problems

This commit is contained in:
abcdefg30
2021-09-08 11:23:30 +02:00
committed by teinarss
parent 777d966958
commit a1e62158e2

View File

@@ -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);