diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index 29484c06..7d9098d2 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -345,6 +345,7 @@ if(href_list["amount"]) var/id = href_list["add"] var/amount = text2num(href_list["amount"]) + amount = isgoodnumber(amount) //Sanity check hrefs people -Scopes R.trans_id_to(src, id, amount) else if (href_list["addcustom"]) @@ -359,6 +360,7 @@ if(href_list["amount"]) var/id = href_list["remove"] var/amount = text2num(href_list["amount"]) + amount = isgoodnumber(amount) //Sanity check hrefs people -Scopes if(mode) reagents.trans_id_to(beaker, id, amount) else @@ -1232,4 +1234,4 @@ target.apply_damage(10, HALLOSS) target.say("*scream") spawn(10) - user.visible_message("\red [user] stops the [src] and leaves [target] resting as they are.", "\red You turn the [src] off and let go of [target].") \ No newline at end of file + user.visible_message("\red [user] stops the [src] and leaves [target] resting as they are.", "\red You turn the [src] off and let go of [target].")