summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)