mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 18:30:29 +01:00
UI bugfix using [ in search pattern
This commit is contained in:
parent
ab14c44c49
commit
0137db6a8a
@ -505,6 +505,13 @@ unified_inventory.apply_filter = function(player,filter)
|
||||
local player_name = player:get_player_name()
|
||||
local size=0
|
||||
local str_temp1=string.lower(filter)
|
||||
if str_temp1 ~= "" then
|
||||
for i=1,str_temp1:len(),1 do
|
||||
if string.byte(str_temp1,i) == 91 then
|
||||
str_temp1=""
|
||||
end
|
||||
end
|
||||
end
|
||||
local str_temp2
|
||||
local str_temp3
|
||||
unified_inventory.filtered_items_list[player_name]={}
|
||||
|
Loading…
Reference in New Issue
Block a user