mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
Hide already-downloaded programs from NTNet downloader (#32396)
This commit is contained in:
committed by
CitadelStationBot
parent
910e6b6396
commit
6581eb8526
@@ -130,7 +130,7 @@
|
||||
for(var/A in GLOB.ntnet_global.available_station_software)
|
||||
var/datum/computer_file/program/P = A
|
||||
// Only those programs our user can run will show in the list
|
||||
if(!P.can_run(user,transfer = 1))
|
||||
if(!P.can_run(user,transfer = 1) || hard_drive.find_file_by_name(P.filename))
|
||||
continue
|
||||
all_entries.Add(list(list(
|
||||
"filename" = P.filename,
|
||||
@@ -144,6 +144,8 @@
|
||||
var/list/hacked_programs[0]
|
||||
for(var/S in GLOB.ntnet_global.available_antag_software)
|
||||
var/datum/computer_file/program/P = S
|
||||
if(hard_drive.find_file_by_name(P.filename))
|
||||
continue
|
||||
data["hackedavailable"] = 1
|
||||
hacked_programs.Add(list(list(
|
||||
"filename" = P.filename,
|
||||
|
||||
Reference in New Issue
Block a user