[MIRROR] we load it from a file, that path might no longer exist (#9059)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-09-27 09:53:12 -07:00
committed by GitHub
parent ab7983b39d
commit ca33105cb7

View File

@@ -151,6 +151,11 @@ GLOBAL_DATUM_INIT(gear_tweak_free_matrix_recolor, /datum/gear_tweak/matrix_recol
continue
else
path = contents[metadata[i]]
if(!path)
var/mob/user = ismob(I.loc) ? I.loc : I.loc?.loc
if(istype(user))
to_chat(user, span_warning("The content \"[metadata[i]]\" from \"[I]\" does no longer exist and has not been loaded. Please replace it in the character setup."))
continue
new path(I)
/*