Fixes my idiocy (#17183)

This commit is contained in:
AffectedArc07
2021-12-02 13:43:22 +00:00
committed by GitHub
parent 83a673ce11
commit 2781d3ffaa
+2 -1
View File
@@ -188,7 +188,8 @@
var/datum/stack_recipe/R = recipes_list[text2num(href_list["make"])]
var/multiplier = text2num(href_list["multiplier"])
if(!multiplier || multiplier <= 0 || multiplier > 50 || !IS_INT(multiplier)) // Href exploit checks
message_admins("[key_name_admin(usr)] just attempted to href exploit sheet crafting with an invalid multiplier. Ban highly advised.")
if(multiplier) // It existed but they tried to fuck with it
message_admins("[key_name_admin(usr)] just attempted to href exploit sheet crafting with an invalid multiplier. Ban highly advised.")
multiplier = 1
if(get_amount() < R.req_amount * multiplier)