mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-23 03:13:44 +01:00
Fix possible crash
This commit is contained in:
parent
ca18ae0e3a
commit
97676d094e
2
init.lua
2
init.lua
@ -749,7 +749,7 @@ local function search(data)
|
||||
for i = 1, #data.items_raw do
|
||||
local item = data.items_raw[i]
|
||||
local def = reg_items[item]
|
||||
local desc = lower(def.description)
|
||||
local desc = (def and def.description) and lower(def.description) or ""
|
||||
local search_in = item .. desc
|
||||
local to_add
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user