summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 02:55:51 +0200
committerWuzzy <almikes@aol.com>2016-08-05 02:55:51 +0200
commite77ebe16d2b39eaf03f2a641c2a1e472e423a20c (patch)
tree5eea92928868ef07f50a948ea0653f4dba1af719 /init.lua
parent0dcfcba9269f5eec9d59c7b2877f35cc0a4aca7f (diff)
Make pointalbe factoid clearer
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 1e14158..3827220 100644
--- a/init.lua
+++ b/init.lua
@@ -224,14 +224,20 @@ doc.new_category("nodes", {
formstring = formstring .. "Liquid viscosity: "..viscos.. "\n"
formstring = formstring .. "Renewable liquid: "..yesno(renew).. "\n"
end
- formstring = formstring .. "Pointable: "..yesno(data.def.pointable).. "\n"
- if data.def.liquids_pointable == true then
- formstring = formstring .. "When you wield this block, you can point to liquids.\n"
+ if data.def.pointable == true then
+ formstring = formstring .. "Pointable: Yes\n"
+ elseif liquid then
+ formstring = formstring .. "Pointable: Only by special items\n"
+ else
+ formstring = formstring .. "Pointable: No\n"
end
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