From 5dd1d08943c34e84c01aa845553516f03ddc67c0 Mon Sep 17 00:00:00 2001 From: JP Guerrero Date: Sun, 11 Dec 2016 18:14:43 +0100 Subject: [PATCH] Fix craftguide showing rubbish after pressing Esc --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 88d3b1a..abb4f08 100644 --- a/init.lua +++ b/init.lua @@ -144,7 +144,7 @@ function craftguide:get_formspec(player_name) name..";"..name.."_inv;]" 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({ method="fuel", width=1, items={data.item}}).time > 0 local tooltip = self:get_tooltip(data.item)