[MIRROR] fix a potential server crash (#9598)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-12-07 16:14:03 -07:00
committed by GitHub
parent dc639a7a1f
commit 4257ad7ab5
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@
. = list()
for(var/obj/item/stack/material/S as anything in L)
var/real_path = istext(S) ? text2path(S) : S
if(!ispath(real_path, /obj/item/stack/material))
if(!ispath(real_path, /obj/item/stack/material) || ispath(real_path, /obj/item/stack/material/cyborg))
log_debug("Warning: Sheet_storage persistent datum tried to create [S]")
continue