From ac5ab6b3dbbff4e302df3f950ece3e56af2b930f Mon Sep 17 00:00:00 2001 From: Kyep Date: Thu, 4 Jul 2019 12:41:39 -0700 Subject: [PATCH] fixes bug with biogenerator --- code/modules/hydroponics/biogenerator.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/hydroponics/biogenerator.dm b/code/modules/hydroponics/biogenerator.dm index cc6c6115097..52f188a9d1d 100644 --- a/code/modules/hydroponics/biogenerator.dm +++ b/code/modules/hydroponics/biogenerator.dm @@ -319,6 +319,8 @@ else if(href_list["create"]) var/amount = (text2num(href_list["amount"])) + //Can't be outside these (if you change this keep a sane limit) + amount = Clamp(amount, 1, 10) var/datum/design/D = locate(href_list["create"]) create_product(D, amount) updateUsrDialog()