mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Fix issues with custom reagent holder (#57132)
Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
This commit is contained in:
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()
|
||||
|
||||
Reference in New Issue
Block a user