mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Makes some more lists lazy (#94388)
Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
co-authored by
SyncIt21
MrMelbert
parent
b88e1a1328
commit
53ed83bb9d
@@ -20,7 +20,7 @@
|
||||
if(!theme_app)
|
||||
return FALSE
|
||||
//don't get the same one twice
|
||||
if(theme_app.imported_themes.Find(theme_name))
|
||||
if(LAZYFIND(theme_app.imported_themes, theme_name))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
//add the theme to the computer and increase its size to match
|
||||
var/datum/computer_file/program/themeify/theme_app = locate() in computer.stored_files
|
||||
if(theme_app)
|
||||
theme_app.imported_themes += theme_name
|
||||
LAZYADD(theme_app.imported_themes, theme_name)
|
||||
theme_app.size += size
|
||||
qdel(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user