Merge pull request #15433 from Citadel-Station-13/chem_synth

fixes debug chemical synthesizers
This commit is contained in:
Lin
2021-12-21 17:22:16 +00:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -53,10 +53,10 @@
return
beaker = new /obj/item/reagent_containers/glass/beaker/bluespace(src)
visible_message("<span class='notice'>[src] dispenses a bluespace beaker.</span>")
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)

View File

@@ -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,
})} />
<Button
icon="plus"