diff options
| author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2018-02-13 14:05:34 -0500 | 
|---|---|---|
| committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2018-02-13 14:05:34 -0500 | 
| commit | 335d9a3eddcb590c3ca5de9cba9b152e5e560af1 (patch) | |
| tree | 1b95d73b945fbc9924438c28a35d7f1019fa255f /unified_inventory/internal.lua | |
| parent | 1d0f113f4c5afcf8479973f2e01786fb9a1fbbb7 (diff) | |
| download | dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.gz dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.bz2 dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.xz dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.zip  | |
removed boost_cart and carbone_mobs -- too many crashes
updated blox, homedecor, plantlifed, cottages, farming_redo,
framedglass, gloopblocks, mesecons, moreblocks, moretrees,
pipeworks, player_textures, replacer, signs_lib, stained_glass,
technic, travelnet, unified_inventory, unifieddyes, and worldedit.
Diffstat (limited to 'unified_inventory/internal.lua')
| -rw-r--r-- | unified_inventory/internal.lua | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/unified_inventory/internal.lua b/unified_inventory/internal.lua index 5732971..4e78a89 100644 --- a/unified_inventory/internal.lua +++ b/unified_inventory/internal.lua @@ -290,6 +290,7 @@ function unified_inventory.apply_filter(player, filter, search_dir)  			return string.find(lname, lfilter, 1, true) or string.find(ldesc, lfilter, 1, true)  		end  	end +	local is_creative = unified_inventory.is_creative(player_name)  	unified_inventory.filtered_items_list[player_name]={}  	for name, def in pairs(minetest.registered_items) do  		if (not def.groups.not_in_creative_inventory @@ -297,8 +298,7 @@ function unified_inventory.apply_filter(player, filter, search_dir)  		and def.description  		and def.description ~= ""  		and ffilter(name, def) -		and (unified_inventory.is_creative(player_name) -			or unified_inventory.crafts_for.recipe[def.name]) then +		and (is_creative or unified_inventory.crafts_for.recipe[def.name]) then  			table.insert(unified_inventory.filtered_items_list[player_name], name)  		end  	end  | 
