summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-11 18:14:43 +0100
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-11 18:28:30 +0100
commit5dd1d08943c34e84c01aa845553516f03ddc67c0 (patch)
treeeca2d8c929caee820b1535f2003e88add31d32d2
parentfd34166855a86bc8e4a4fa52781c67679ffa9036 (diff)
Fix craftguide showing rubbish after pressing Esc
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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)