This commit is contained in:
SmallJoker 2022-10-26 09:29:13 +02:00 committed by GitHub
parent fcebcf17d8
commit 29406598d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
local S = minetest.get_translator("unified_inventory")
local F = minetest.formspec_escape
local ui = unified_inventory
local hide_disabled_buttons = ui.hide_disabled_buttons
-- This pair of encoding functions is used where variable text must go in
-- button names, where the text might contain formspec metacharacters.
@ -55,7 +54,7 @@ local function formspec_tab_buttons(player, formspec, style)
for _, def in pairs(ui.buttons) do
if not (style.is_lite_mode and def.hide_lite) then
if (def.condition == nil or def.condition(player) or not hide_disabled_buttons) then
if def.condition == nil or def.condition(player) or not ui.hide_disabled_buttons then
table.insert(filtered_inv_buttons, def)
end
end