mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 13:53:43 +01:00
Back to 9 + fix bug in progressive mode
This commit is contained in:
parent
0f90a84d95
commit
034c7cbe71
3
init.lua
3
init.lua
@ -61,7 +61,7 @@ local min, max, floor, ceil, abs = math.min, math.max, math.floor, math.ceil, ma
|
||||
local pairs, ipairs, next, type, setmetatable = pairs, ipairs, next, type, setmetatable
|
||||
local vec_add, vec_mul = vector.add, vector.multiply
|
||||
|
||||
local ROWS, _ROWS = 10
|
||||
local ROWS, _ROWS = 9
|
||||
local LINES = 10
|
||||
local IPP = ROWS * LINES
|
||||
local MAX_FAVS = 6
|
||||
@ -1949,6 +1949,7 @@ if progressive_mode then
|
||||
if #diff > 0 then
|
||||
data.inv_items = table_merge(diff, data.inv_items)
|
||||
local oldknown = data.known_recipes or 0
|
||||
get_filtered_items(player, data)
|
||||
data.discovered = data.known_recipes - oldknown
|
||||
|
||||
if data.show_hud == nil and data.discovered > 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user