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
|
var/repair_rate = 0
|
||||||
|
|
||||||
/obj/machinery/smartfridge/organ/accept_check(obj/item/O)
|
/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 TRUE
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
@@ -410,8 +410,9 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
if(!.) //if the item loads, clear can_decompose
|
if(!.) //if the item loads, clear can_decompose
|
||||||
return
|
return
|
||||||
var/obj/item/organ/organ = O
|
if(isorgan(O))
|
||||||
organ.organ_flags |= ORGAN_FROZEN
|
var/obj/item/organ/organ = O
|
||||||
|
organ.organ_flags |= ORGAN_FROZEN
|
||||||
|
|
||||||
/obj/machinery/smartfridge/organ/RefreshParts()
|
/obj/machinery/smartfridge/organ/RefreshParts()
|
||||||
for(var/obj/item/stock_parts/matter_bin/B in component_parts)
|
for(var/obj/item/stock_parts/matter_bin/B in component_parts)
|
||||||
|
|||||||
Reference in New Issue
Block a user