diff options
author | Wuzzy <almikes@aol.com> | 2016-11-03 04:12:44 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-11-03 04:12:44 +0100 |
commit | 852fa83da33a63133861e628ecc85ab92209e439 (patch) | |
tree | 3545afc3ca12bbb330148c7499c5e1afa8d0dc04 /init.lua | |
parent | 7f2f87c45cf2a279a36cb1fe2feda78dd6c2a078 (diff) |
Actually check itemstring setting for truth
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |