mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 18:11:47 +00:00
Fix organ fridge runtime (#47785)
Was trying to set organ flags on bodyparts.
This commit is contained in:
@@ -402,7 +402,7 @@
|
||||
var/repair_rate = 0
|
||||
|
||||
/obj/machinery/smartfridge/organ/accept_check(obj/item/O)
|
||||
if(istype(O, /obj/item/organ) || istype (O, /obj/item/bodypart))
|
||||
if(isorgan(O) || isbodypart(O))
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
@@ -410,6 +410,7 @@
|
||||
. = ..()
|
||||
if(!.) //if the item loads, clear can_decompose
|
||||
return
|
||||
if(isorgan(O))
|
||||
var/obj/item/organ/organ = O
|
||||
organ.organ_flags |= ORGAN_FROZEN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user