Fix issues with custom reagent holder (#57132)

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
This commit is contained in:
Jack LeCroy
2021-03-08 16:51:15 -08:00
committed by GitHub
co-authored by Jordan Brown
parent 2431edb86c
commit 09a8093822
@@ -28,7 +28,7 @@
atom/replacement,
fill_type,
ingredient_type = CUSTOM_INGREDIENT_TYPE_EDIBLE,
max_ingredients = INFINITY,
max_ingredients = MAX_ATOM_OVERLAYS - 2,
list/obj/item/initial_ingredients = null)
if(!isatom(parent))
return COMPONENT_INCOMPATIBLE
@@ -122,7 +122,7 @@
if(!attacker.transferItemToLoc(ingredient, atom_parent))
return
if (replacement)
var/atom/replacement_parent = new replacement(atom_parent.loc)
var/atom/replacement_parent = new replacement(atom_parent.drop_location())
ingredient.forceMove(replacement_parent)
replacement = null
RemoveComponent()