aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client
diff options
context:
space:
mode:
authorRémy Raes <raes.remy@gmail.com>2024-08-29 15:44:12 +0200
committerGitHub <noreply@github.com>2024-08-29 15:44:12 +0200
commit3d278b3b25fe0b62bec1f196116d175b29c20640 (patch)
tree2978d63c8705bc2a8d044299debad586c1aa4206 /Northstar.Client
parentffc5dfd0b637f56846ac1bb6330dce7544d40762 (diff)
downloadNorthstarMods-3d278b3b25fe0b62bec1f196116d175b29c20640.tar.gz
NorthstarMods-3d278b3b25fe0b62bec1f196116d175b29c20640.zip
Hide remote mods in mods display (#799)
As they are supposed to be disabled unless joining a server that requires that mod.
Diffstat (limited to 'Northstar.Client')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut4
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut
index 3f643aa3..f08d69a7 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut
@@ -338,6 +338,10 @@ void function RefreshMods()
{
string mod = modNames[i]
+ // Do not display remote mods
+ if ( NSIsModRemote( mod ) )
+ continue
+
if ( searchTerm.len() && mod.tolower().find( searchTerm ) == null )
continue