Fix exploit

This commit is contained in:
raymoo 2016-03-11 15:33:48 -08:00
parent a00ab96251
commit 3dfa1457f2
1 changed files with 4 additions and 0 deletions

View File

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