From 1c36a4e07c208be16d8c8019456f20e329355854 Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Fri, 27 Dec 2024 01:13:38 +0100 Subject: [PATCH] Fixed potion appearance in creative menu (search) (#4760) This fixes potion appearance in creative menu, in the search tab. Proper potions appear there now. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4760 Co-authored-by: the-real-herowl Co-committed-by: the-real-herowl --- mods/HUD/mcl_inventory/creative.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/HUD/mcl_inventory/creative.lua b/mods/HUD/mcl_inventory/creative.lua index f8618cb11..3adede128 100644 --- a/mods/HUD/mcl_inventory/creative.lua +++ b/mods/HUD/mcl_inventory/creative.lua @@ -124,16 +124,19 @@ minetest.register_on_mods_loaded(function() local potency = def._default_potent_level - 1 stack:get_meta():set_int("mcl_potions:potion_potent", potency) table.insert(inventory_lists["brew"], stack:to_string()) + table.insert(inventory_lists["all"], stack:to_string()) end if def.has_plus then local stack = ItemStack(name) local extend = def._default_extend_level stack:get_meta():set_int("mcl_potions:potion_plus", extend) table.insert(inventory_lists["brew"], stack:to_string()) + table.insert(inventory_lists["all"], stack:to_string()) end + else + table.insert(inventory_lists["all"], name) end - table.insert(inventory_lists["all"], name) end end