mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 22:03:42 +01:00
Fix crash in progressive mode
This commit is contained in:
parent
dcb479dc44
commit
f9f9988868
1
init.lua
1
init.lua
@ -1615,6 +1615,7 @@ local function fields(player, _f)
|
|||||||
|
|
||||||
local recipes, usages = get_recipes(item, data, player)
|
local recipes, usages = get_recipes(item, data, player)
|
||||||
if not recipes and not usages then return end
|
if not recipes and not usages then return end
|
||||||
|
if data.show_usages and not usages then return end
|
||||||
|
|
||||||
data.query_item = item
|
data.query_item = item
|
||||||
data.recipes = recipes
|
data.recipes = recipes
|
||||||
|
Loading…
Reference in New Issue
Block a user