summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 03:21:52 +0200
committerWuzzy <almikes@aol.com>2016-08-05 03:21:52 +0200
commit92305e409854fddd884b7fa4656b197cf5b77f30 (patch)
tree6cf8eafd305e3142f42a17795ffe18dc8f11f748 /init.lua
parente77ebe16d2b39eaf03f2a641c2a1e472e423a20c (diff)
Move liquid pointing stuff
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua25
1 files 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