summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-03 04:12:44 +0100
committerWuzzy <almikes@aol.com>2016-11-03 04:12:44 +0100
commit852fa83da33a63133861e628ecc85ab92209e439 (patch)
tree3545afc3ca12bbb330148c7499c5e1afa8d0dc04 /init.lua
parent7f2f87c45cf2a279a36cb1fe2feda78dd6c2a078 (diff)
Actually check itemstring setting for truth
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 7c28ef9..f677bb5 100644
--- a/init.lua
+++ b/init.lua
@@ -724,7 +724,7 @@ doc.new_category("nodes", {
datastring = newline2(datastring)
datastring = datastring .. fuel_factoid(data.itemstring, "nodes")
- if doc.sub.items.settings.itemstring ~= nil then
+ if doc.sub.items.settings.itemstring == true then
datastring = newline2(datastring)
datastring = datastring .. string.format(S("Itemstring: \"%s\""), data.itemstring)
end
@@ -800,7 +800,7 @@ doc.new_category("tools", {
datastring = newline2(datastring)
datastring = datastring .. fuel_factoid(data.itemstring, "tools")
- if doc.sub.items.settings.itemstring ~= nil then
+ if doc.sub.items.settings.itemstring == true then
datastring = newline2(datastring)
datastring = datastring .. string.format(S("Itemstring: \"%s\""), data.itemstring)
end
@@ -868,7 +868,7 @@ doc.new_category("craftitems", {
datastring = newline2(datastring)
datastring = datastring .. fuel_factoid(data.itemstring, "craftitems")
- if doc.sub.items.settings.itemstring ~= nil then
+ if doc.sub.items.settings.itemstring == true then
datastring = newline2(datastring)
datastring = datastring .. string.format(S("Itemstring: \"%s\""), data.itemstring)
end