From 4f51af2ebcb3546cad7e18dc0ec612b8764c6dcc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 30 May 2017 13:06:03 +0200 Subject: [PATCH] Update to doc_items 1.1.1 --- mods/HELP/doc/doc_items/README.md | 2 +- mods/HELP/doc/doc_items/init.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/HELP/doc/doc_items/README.md b/mods/HELP/doc/doc_items/README.md index d18a62ea9..c163fea87 100644 --- a/mods/HELP/doc/doc_items/README.md +++ b/mods/HELP/doc/doc_items/README.md @@ -1,4 +1,4 @@ -# Item Help [`doc_items`] (Version 1.1.0) +# Item Help [`doc_items`] (Version 1.1.1) ## Description Automatically generated help texts of blocks, tools, weapons, crafting items and other items. diff --git a/mods/HELP/doc/doc_items/init.lua b/mods/HELP/doc/doc_items/init.lua index f0ba8126f..baa3ef4f5 100644 --- a/mods/HELP/doc/doc_items/init.lua +++ b/mods/HELP/doc/doc_items/init.lua @@ -592,10 +592,9 @@ doc.add_category("nodes", { formstring = entry_image(data) datastring = factoids_header(data, "nodes") + local liquid = data.def.liquidtype ~= "none" if not forbidden_core_factoids.basics then datastring = datastring .. S("Collidable: @1", yesno(data.def.walkable)) .. "\n" - local liquid - if data.def.liquidtype ~= "none" then liquid = true else liquid = false end if data.def.pointable == true then datastring = datastring .. S("Pointable: Yes") .. "\n" elseif liquid then