From e44dff90dae0b275b5c278ffcfcf39ff8e4289fd Mon Sep 17 00:00:00 2001 From: Jari van der Kaap Date: Sun, 19 Feb 2023 18:03:53 +0100 Subject: [PATCH] fix: don't run stats and serverbrowser ui scripts when loading a map --- data/ui_scripts/doubleclick_join_server/__init__.lua | 4 ++++ data/ui_scripts/stats/__init__.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/data/ui_scripts/doubleclick_join_server/__init__.lua b/data/ui_scripts/doubleclick_join_server/__init__.lua index 87c788b2..c34f4a1f 100644 --- a/data/ui_scripts/doubleclick_join_server/__init__.lua +++ b/data/ui_scripts/doubleclick_join_server/__init__.lua @@ -1,3 +1,7 @@ +if not CoD.isFrontend then + return +end + require( "ui.uieditor.widgets.PC.ServerBrowser.ServerBrowserRowInternal" ) require( "ui.uieditor.widgets.Lobby.Common.FE_FocusBarContainer" ) diff --git a/data/ui_scripts/stats/__init__.lua b/data/ui_scripts/stats/__init__.lua index 3efddd04..28f431b9 100644 --- a/data/ui_scripts/stats/__init__.lua +++ b/data/ui_scripts/stats/__init__.lua @@ -1,3 +1,7 @@ +if not CoD.isFrontend then + return +end + DataSources.MPStatsSettings = DataSourceHelpers.ListSetup( "MPStatsSettings", function ( controller ) local optionsTable = {}