mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Merge pull request #5927 from CHOMPStation2/upstream-merge-14681
[MIRROR] [MIRROR] Sheet storage has different caps per type.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/obj/machinery/smartfridge/sheets //Is this used anywhere? It's not secure.
|
||||
/obj/machinery/smartfridge/sheets
|
||||
name = "\improper Smart Sheet Storage"
|
||||
desc = "A storage unit for metals."
|
||||
icon_contents = "boxes"
|
||||
@@ -27,6 +27,6 @@
|
||||
|
||||
/obj/machinery/smartfridge/sheets/find_record(var/obj/item/O)
|
||||
for(var/datum/stored_item/stack/I as anything in item_records)
|
||||
if(istype(O, I.item_path)) // Typecheck should evaluate material-specific subtype
|
||||
if(O.type == I.item_path) // Typecheck should evaluate material-specific subtype
|
||||
return I
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user