summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-01 23:19:49 +0200
committerWuzzy <almikes@aol.com>2016-08-01 23:19:49 +0200
commit7c45abfee3c8c9203857f7708f2163ee65f71774 (patch)
tree60a52494ee971b313876f95e6bb8e6808896a148
parent157465aa342b3e9b0c6b65993f9d294b41157405 (diff)
Improve light texts
-rw-r--r--init.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 5dba68f..704aa07 100644
--- a/init.lua
+++ b/init.lua
@@ -194,7 +194,6 @@ doc.new_category("nodes", {
formstring = formstring .. "Renewable liquid: "..yesno(renew).. "\n"
end
formstring = formstring .. "Pointable: "..yesno(data.def.pointable).. "\n"
- formstring = formstring .. "Transparent to sunlight: "..yesno(data.def.sunlight_propagates).. "\n"
formstring = formstring .. "\n"
@@ -215,6 +214,13 @@ doc.new_category("nodes", {
elseif data.def.light_source == 1 then
formstring = formstring .. "This block glows faintly. It is barely noticable.\n"
end
+ if data.def.paramtype == "light" and data.def.sunlight_propagates then
+ formstring = formstring .. "This block allows light to propagate with a small loss of brightness, but sunlight can go through without loss.\n"
+ elseif data.def.paramtype == "light" then
+ formstring = formstring .. "This block allows light to propagate with a small loss of brightness.\n"
+ elseif data.def.sunlight_propagates then
+ formstring = formstring .. "This block allows sunlight to propagate without loss in brightness.\n"
+ end
if data.def.climbable == true then
formstring = formstring .. "This block can be climbed.\n"
end