mirror of
https://github.com/minetest-mods/i3.git
synced 2025-03-22 20:50:29 +01:00
Small fix
This commit is contained in:
parent
6f5d0a1760
commit
2f612bb5da
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user