Skip to content

Commit d5e65ae

Browse files
oops
1 parent d13f6d1 commit d5e65ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,6 @@ void function ReloadMods()
707707
bool svCheatsOriginal = GetConVarBool( "sv_cheats" )
708708
SetConVarBool( "sv_cheats", true )
709709
ClientCommand( "weapon_reparse" ) // weapon_reparse only works if a server is running and sv_cheats is 1, gotta figure this out eventually
710-
SetConVarBool( "sv_cheats", svCheatsOriginal )
711710

712711
array<string> materialPaths = [ "cable", "correction", "debug", "decals", "dev", "effect", "engine", "models", "particle", "sprites", "tools", "ui", "vgui", "world" ]
713712

@@ -718,6 +717,8 @@ void function ReloadMods()
718717
ClientCommand( "mat_reloadmaterial " + dir + "/" )
719718
}
720719

720+
SetConVarBool( "sv_cheats", svCheatsOriginal )
721+
721722
// note: the logic for this seems really odd, unsure why it doesn't seem to update, since the same code seems to get run irregardless of whether we've read weapon data before
722723
ClientCommand( "uiscript_reset" )
723724
}

0 commit comments

Comments
 (0)