mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Fixes that painting asset runtime that happens every time. (#3210)
* Fixes that painting asset runtime that happens every time. (#56746) Painting titles are not guaranteed to be unique, especially between categories. * Fixes that painting asset runtime that happens every time. Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
@@ -488,7 +488,8 @@
|
||||
var/list/portrait = p
|
||||
var/png = "data/paintings/[tab]/[portrait["md5"]].png"
|
||||
if(fexists(png))
|
||||
assets[portrait["title"]] = png
|
||||
var/asset_name = "[tab]_[portrait["md5"]]"
|
||||
assets[asset_name] = png
|
||||
..() //this is where it registers all these assets we added to the list
|
||||
|
||||
/datum/asset/simple/portraits/library
|
||||
|
||||
Reference in New Issue
Block a user