forked from minetest-mods/global_exchange
Fix exploit
This commit is contained in:
parent
a00ab96251
commit
3dfa1457f2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user