Skip to content

Commit 838e009

Browse files
authored
Merge pull request #1137 from Kein/patch-8
fix: console keys double remap/logic run in case when CR executes earlier than EiGT
2 parents 83b2a4a + d765ec1 commit 838e009

File tree

1 file changed

+4
-1
lines changed
  • assets/Mods/ConsoleEnablerMod/Scripts

1 file changed

+4
-1
lines changed

assets/Mods/ConsoleEnablerMod/Scripts/main.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ end
7070
-- ENTRY POINT
7171
--########################
7272

73-
ExecuteInGameThread(CreateConsole)
73+
--- In cases where ClientRestart runs earlier than ExecuteInGameThread
74+
if (not WasConsoleCreated or IsDynamicViewport) then
75+
ExecuteInGameThread(CreateConsole)
76+
end
7477

7578
--- We only need to create console once since it is a VP singleton
7679
Pre, Post = RegisterHook("/Script/Engine.PlayerController:ClientRestart",

0 commit comments

Comments
 (0)