From 92305e409854fddd884b7fa4656b197cf5b77f30 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 5 Aug 2016 03:21:52 +0200 Subject: Move liquid pointing stuff --- init.lua | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index 3827220..9421e8f 100644 --- a/init.lua +++ b/init.lua @@ -205,6 +205,10 @@ doc.new_category("nodes", { formstring = formstring .. range_factoid(data.itemstring, data.def) .. "\n" + if data.def.liquids_pointable == true then + formstring = formstring .. "This block points to liquids.\n" + end + formstring = formstring .. "\n" formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) @@ -235,9 +239,6 @@ doc.new_category("nodes", { formstring = formstring .. "\n" -- Global factoids - if data.def.liquids_pointable == true then - formstring = formstring .. "When you wield this block, you can point to liquids.\n" - end if data.def.floodable == true then formstring = formstring .. "Liquids can flow into this block and destroy it.\n" end @@ -545,17 +546,16 @@ doc.new_category("tools", { formstring = formstring .. range_factoid(data.itemstring, data.def) .. "\n" + if data.def.liquids_pointable == true then + formstring = formstring .. "This tool points to liquids.\n" + end + formstring = formstring .. "\n" formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) formstring = formstring .. "\n" - -- Global factoids - if data.def.liquids_pointable == true then - formstring = formstring .. "This tool points to liquids.\n" - end - -- Show other “exposable” groups local gstring, gcount = groups_to_string(data.def.groups, miscgroups) if gstring ~= nil then @@ -598,17 +598,16 @@ doc.new_category("craftitems", { formstring = formstring .. range_factoid(data.itemstring, data.def) .. "\n" + if data.def.liquids_pointable == true then + formstring = formstring .. "This item points to liquids.\n" + end + formstring = formstring .. "\n" formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) formstring = formstring .. "\n" - -- Global factoids - if data.def.liquids_pointable == true then - formstring = formstring .. "This item points to liquids.\n" - end - -- Show other “exposable” groups local gstring, gcount = groups_to_string(data.def.groups, miscgroups) if gstring ~= nil then -- cgit v1.2.3