Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

Commit

Permalink
Fix creative inventory search for some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen committed Dec 9, 2015
1 parent d7b6452 commit b100571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/creative/init.lua
Expand Up @@ -52,7 +52,7 @@ function creative_inventory.update(player_name, filter)
for name, def in pairs(minetest.registered_items) do
if not (def.groups.not_in_creative_inventory == 1) and
def.description and def.description ~= "" then
if (filter and def.name:find(filter)) or not filter then
if (filter and def.name:find(filter, 1, true)) or not filter then
creative_list[#creative_list+1] = name
end
end
Expand Down

0 comments on commit b100571

Please sign in to comment.