diff --git a/code/modules/chemical/Chemistry-Machinery.dm b/code/modules/chemical/Chemistry-Machinery.dm index 54123e84aac..7a07b171b76 100644 --- a/code/modules/chemical/Chemistry-Machinery.dm +++ b/code/modules/chemical/Chemistry-Machinery.dm @@ -253,19 +253,17 @@ dat += "Condimaster 3000Condiment infos:

Name:
[href_list["name"]]

Description:
[href_list["desc"]]


(Back)" usr << browse(dat, "window=chem_master;size=575x400") return + else if (href_list["add1"]) - R.remove_reagent(href_list["add1"], 1) //Remove/add used instead of trans_to since we're moving a specific reagent. - reagents.add_reagent(href_list["add1"], 1) + R.trans_id_to(src, href_list["add1"], 1) else if (href_list["add5"]) - R.remove_reagent(href_list["add5"], 5) - reagents.add_reagent(href_list["add5"], 5) + R.trans_id_to(src, href_list["add5"], 5) else if (href_list["add10"]) - R.remove_reagent(href_list["add10"], 10) - reagents.add_reagent(href_list["add10"], 10) + R.trans_id_to(src, href_list["add10"], 10) else if (href_list["addall"]) var/temp_amt = R.get_reagent_amount(href_list["addall"]) - reagents.add_reagent(href_list["addall"], temp_amt) - R.del_reagent(href_list["addall"]) + R.trans_id_to(src, href_list["addall"], temp_amt) + else if (href_list["remove1"]) reagents.remove_reagent(href_list["remove1"], 1) if(mode) R.add_reagent(href_list["remove1"], 1) @@ -280,6 +278,7 @@ var/temp_amt = reagents.get_reagent_amount(href_list["removeall"]) R.add_reagent(href_list["removeall"], temp_amt) reagents.del_reagent(href_list["removeall"]) + else if (href_list["toggle"]) if(mode) mode = 0