projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab14c44
)
UI bugfix using [ in search pattern
author
RealBadAngel
<mk@realbadangel.pl>
Sun, 3 Mar 2013 09:37:48 +0000
(10:37 +0100)
committer
RealBadAngel
<mk@realbadangel.pl>
Sun, 3 Mar 2013 09:37:48 +0000
(10:37 +0100)
unified_inventory/api.lua
patch
|
blob
|
history
diff --git
a/unified_inventory/api.lua
b/unified_inventory/api.lua
index 01bcc8e27e9aae885605c90030bf749df3aebd36..4a85dc6a1440398ae0b709f652ad12b1f6e68a4e 100644
(file)
--- a/
unified_inventory/api.lua
+++ b/
unified_inventory/api.lua
@@
-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]={}