mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 04:23:44 +01:00
Fix craftguide showing rubbish after pressing Esc
This commit is contained in:
parent
fd34166855
commit
5dd1d08943
2
init.lua
2
init.lua
@ -144,7 +144,7 @@ function craftguide:get_formspec(player_name)
|
|||||||
name..";"..name.."_inv;]"
|
name..";"..name.."_inv;]"
|
||||||
end
|
end
|
||||||
|
|
||||||
if data.item and minetest.registered_items[data.item] then
|
if data.item ~= "" and minetest.registered_items[data.item] then
|
||||||
local is_fuel_only = minetest.get_craft_result({
|
local is_fuel_only = minetest.get_craft_result({
|
||||||
method="fuel", width=1, items={data.item}}).time > 0
|
method="fuel", width=1, items={data.item}}).time > 0
|
||||||
local tooltip = self:get_tooltip(data.item)
|
local tooltip = self:get_tooltip(data.item)
|
||||||
|
Loading…
Reference in New Issue
Block a user