Small fix

This commit is contained in:
Jean-Patrick Guerrero 2021-11-08 20:13:51 +01:00
parent 6f5d0a1760
commit 2f612bb5da

View File

@ -446,8 +446,8 @@ local function compress_items(list, start_i)
return new_inv return new_inv
end end
local function reject_items(player, inv, list, rej) local function reject_items(player, inv, list, start_i, rej)
for i = 1, #list do for i = start_i, #list do
local stack = list[i] local stack = list[i]
local name = stack:get_name() local name = stack:get_name()
@ -469,7 +469,7 @@ local function sort_inventory(player, data)
local start_i = data.ignore_hotbar and 10 or 1 local start_i = data.ignore_hotbar and 10 or 1
if true_table(data.reject_items) then if true_table(data.reject_items) then
list = reject_items(player, inv, list, data.reject_items) list = reject_items(player, inv, list, start_i, data.reject_items)
end end
if data.inv_compress then if data.inv_compress then