Fixes reagent exposure on transfer. (#51801)

* Fiiiiiix

Some cleaning, fixes a proc

* Density

Adds SpaceManiac's suggestion.
This commit is contained in:
TemporalOroboros
2020-06-24 10:32:52 -04:00
committed by GitHub
parent 51dac16136
commit 2188a6722e
5 changed files with 13 additions and 16 deletions
+2 -3
View File
@@ -346,10 +346,9 @@
/// Handles exposing an object to reagents.
/obj/expose_reagents(list/reagents, datum/reagents/source, method=TOUCH, volume_modifier=1, show_message=TRUE)
. = ..()
if(. & COMPONENT_NO_EXPOSE_REAGENTS)
if((. = ..()) & COMPONENT_NO_EXPOSE_REAGENTS)
return
for(var/reagent in reagents)
var/datum/reagent/R = reagent
R.expose_obj(src, reagents[R] || (R.volume * volume_modifier))
. |= R.expose_obj(src, reagents[R])