From 7dd5e563b0d6e1065a532b4b7ed38b5b3aaff15a Mon Sep 17 00:00:00 2001 From: deathride58 Date: Thu, 2 May 2019 00:21:38 -0400 Subject: [PATCH] Clamps biogen amount to a sane amount --- 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 e1eb976966..eaffeaf016 100644 --- a/code/modules/hydroponics/biogenerator.dm +++ b/code/modules/hydroponics/biogenerator.dm @@ -304,6 +304,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, 50) var/datum/design/D = locate(href_list["create"]) create_product(D, amount) updateUsrDialog()