Merge pull request #15433 from Citadel-Station-13/chem_synth
fixes debug chemical synthesizers
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user