mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-09-28 06:40:22 +02:00
changes from PR feedback
This commit is contained in:
parent
f6b7f8054f
commit
2360a53a7e
8
init.lua
8
init.lua
|
@ -504,7 +504,9 @@ local function get_filter_items(data, player)
|
||||||
local item = items_list[i]
|
local item = items_list[i]
|
||||||
local item_desc = reg_items[item].description:lower()
|
local item_desc = reg_items[item].description:lower()
|
||||||
|
|
||||||
if (filter == "" or item:find(filter, 1, true) or item_desc:find(filter, 1, true)) then
|
if filter == "" or
|
||||||
|
item:find(filter, 1, true)
|
||||||
|
or item_desc:find(filter, 1, true) then
|
||||||
local _recipes, has_item
|
local _recipes, has_item
|
||||||
if progressive_mode then
|
if progressive_mode then
|
||||||
_recipes, has_item = recipe_in_inv(inv, item)
|
_recipes, has_item = recipe_in_inv(inv, item)
|
||||||
|
@ -720,7 +722,9 @@ if sfinv_only then
|
||||||
|
|
||||||
on_enter = function(self, player, context)
|
on_enter = function(self, player, context)
|
||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
if not player_data[player_name] then
|
local data = player_data[player_name]
|
||||||
|
|
||||||
|
if not data then
|
||||||
init_data(player, player_name)
|
init_data(player, player_name)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user