mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 12:33:43 +01:00
Remove superfluous call
This commit is contained in:
parent
5e8079b2e8
commit
5625a0cb1c
7
init.lua
7
init.lua
@ -627,18 +627,13 @@ local function init_data(player, name)
|
||||
filter = "",
|
||||
pagenum = 1,
|
||||
iX = sfinv_only and 8 or DEFAULT_SIZE,
|
||||
items = init_items,
|
||||
}
|
||||
|
||||
local p_items
|
||||
if progressive_mode then
|
||||
local meta = player:get_meta()
|
||||
player_data[name].inv_items = deserialize(meta:get_string("inv_items"))
|
||||
|
||||
p_items = get_progressive_items(player, name)
|
||||
player_data[name].p_items = p_items
|
||||
end
|
||||
|
||||
player_data[name].items = p_items or init_items
|
||||
end
|
||||
|
||||
local function reset_data(data)
|
||||
|
Loading…
Reference in New Issue
Block a user