summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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