Skip to content

Commit b0d93ea

Browse files
authored
fix: console keys double-remap/logic run when CR executes earlier
1 parent 3e2d111 commit b0d93ea

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 case when 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)