mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 07:10:19 +01:00
sfinv: Fix wrong tab being highlighted
Thank you to @ForbiddenJ for finding cause of the issue.
This commit is contained in:
parent
6d67badcac
commit
a16413f96c
@ -70,7 +70,7 @@ function sfinv.get_formspec(player, context)
|
|||||||
nav[#nav + 1] = pdef.title
|
nav[#nav + 1] = pdef.title
|
||||||
nav_ids[#nav_ids + 1] = pdef.name
|
nav_ids[#nav_ids + 1] = pdef.name
|
||||||
if pdef.name == context.page then
|
if pdef.name == context.page then
|
||||||
current_idx = i
|
current_idx = #nav_ids
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user