diff --git a/code/modules/reagents/chemistry/machinery/chem_synthesizer.dm b/code/modules/reagents/chemistry/machinery/chem_synthesizer.dm index 489f9dd179..ae87d7714c 100644 --- a/code/modules/reagents/chemistry/machinery/chem_synthesizer.dm +++ b/code/modules/reagents/chemistry/machinery/chem_synthesizer.dm @@ -53,10 +53,10 @@ return beaker = new /obj/item/reagent_containers/glass/beaker/bluespace(src) visible_message("[src] dispenses a bluespace beaker.") - if("amount") - var/input = text2num(params["amount"]) + if("synth_amount") + var/input = text2num(params["synth_amount"]) if(input) - amount = input + amount = max(input, 0) update_icon() /obj/machinery/chem_dispenser/chem_synthesizer/proc/find_reagent(input) diff --git a/tgui/packages/tgui/interfaces/ChemDebugSynthesizer.js b/tgui/packages/tgui/interfaces/ChemDebugSynthesizer.js index 0e073ba885..b82c793703 100644 --- a/tgui/packages/tgui/interfaces/ChemDebugSynthesizer.js +++ b/tgui/packages/tgui/interfaces/ChemDebugSynthesizer.js @@ -33,8 +33,8 @@ export const ChemDebugSynthesizer = (props, context) => { maxValue={beakerMaxVolume} step={1} stepPixelSize={2} - onChange={(e, value) => act('amount', { - amount: value, + onChange={(e, value) => act('synth_amount', { + synth_amount: value, })} />