Fix exploit

This commit is contained in:
raymoo 2016-03-11 15:33:48 -08:00
parent a00ab96251
commit 3dfa1457f2

View File

@ -316,6 +316,10 @@ local function post_order(player, ex_name, order_type, item_name, amount_str, ra
return false, "Invalid rate." return false, "Invalid rate."
end end
if amount > 1000 then
return false, "Max amount is 1000"
end
local p_inv = player:get_inventory() local p_inv = player:get_inventory()
local stack = ItemStack(item_name) local stack = ItemStack(item_name)
stack:set_count(amount) stack:set_count(amount)