[MIRROR] Fix issues with custom reagent holder (#4014)

* Fix issues with custom reagent holder (#57132)

Co-authored-by: Jordan Brown <Cyberboss@ users.noreply.github.com>

* Fix issues with custom reagent holder

Co-authored-by: Jack LeCroy <3073035+jacklecroy@users.noreply.github.com>
Co-authored-by: Jordan Brown <Cyberboss@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-09 17:31:07 +00:00
committed by GitHub
co-authored by Jordan Brown Jack LeCroy
parent b10d8ef294
commit d829ebab49
@@ -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()