From d5a719ac3a3a1038a738cb2a07bc01b9cf7bb110 Mon Sep 17 00:00:00 2001 From: Burzah <116982774+Burzah@users.noreply.github.com> Date: Sat, 5 Aug 2023 11:37:24 -0700 Subject: [PATCH] pills into patch pack fix (#21908) --- code/modules/reagents/chemistry/machinery/chem_master.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index c4d8d05e04e..7dfbb88d71f 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -456,7 +456,7 @@ P.icon_state = "pill[pillsprite]" reagents.trans_to(P, amount_per_pill) // Load the pills in the bottle if there's one loaded - if(istype(loaded_pill_bottle) && length(loaded_pill_bottle.contents) < loaded_pill_bottle.storage_slots) + if(istype(loaded_pill_bottle) && loaded_pill_bottle.can_be_inserted(P, TRUE)) P.forceMove(loaded_pill_bottle) if("create_pill_multiple") if(condi || !reagents.total_volume) @@ -492,7 +492,7 @@ P.instant_application = TRUE P.icon_state = "bandaid_med" // Load the patches in the bottle if there's one loaded - if(istype(loaded_pill_bottle, /obj/item/storage/pill_bottle/patch_pack) && length(loaded_pill_bottle.contents) < loaded_pill_bottle.storage_slots) + if(istype(loaded_pill_bottle) && loaded_pill_bottle.can_be_inserted(P, TRUE)) P.forceMove(loaded_pill_bottle) if("create_patch_multiple") if(condi || !reagents.total_volume)