Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix creative inventory search for some cases

  • Loading branch information
BlockMen committed Dec 9, 2015
1 parent d7b6452 commit b100571bcaed7dc6c4d802d390998049a13f10f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/creative/init.lua
@@ -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

0 comments on commit b100571

Please sign in to comment.