Skip to content

Commit

Permalink
Update code/datums/components/crafting/crafting.dm
Browse files Browse the repository at this point in the history
Co-authored-by: Lucy <lucy@absolucy.moe>
  • Loading branch information
PotatoTomahto and Absolucy authored Sep 20, 2024
1 parent 183d36a commit f19c6be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/datums/components/crafting/crafting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,9 @@
var/atom/movable/AM = locate(part) in Deletion
//MONKESTATION EDIT START
var/datum/reagents/reagents = AM.reagents
if(reagents)
for(var/datum/reagent/reagent as anything in reagents.reagent_list) //Purge diseases from food
if(reagent.data && reagent.data["viruses"])
reagent.data["viruses"] = list()
for(var/datum/reagent/reagent as anything in reagents?.reagent_list) //Purge diseases from food
if(reagent.data?["viruses"])
reagent.data["viruses"] = list()
//MONKESTATION EDIT END
. += AM
Deletion -= AM
Expand Down

0 comments on commit f19c6be

Please # to comment.