summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-28 18:28:24 +0200
committerWuzzy <almikes@aol.com>2016-08-28 18:28:24 +0200
commite192d268649b0ec98ec94780b1bd470a38e5f0e4 (patch)
treed6fbe7810e813e5b195f7027f8b7ed2334636495 /init.lua
parent7f902352a68c1ee96be6c269b76da3348373e9ee (diff)
Clean up some factual mistakes regarding buildable_to
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 7d91fdb..ba97845 100644
--- a/init.lua
+++ b/init.lua
@@ -345,9 +345,6 @@ doc.new_category("nodes", {
end
--- Dropping and destruction
- if data.def.floodable == true then
- formstring = formstring .. "Liquids can flow into this block and destroy it.\n"
- end
if data.def.buildable_to == true then
formstring = formstring .. "Building another block at this block will place it inside and replace it.\n"
if data.def.walkable then
@@ -355,7 +352,7 @@ doc.new_category("nodes", {
end
end
if data.def.walkable == false then
- if data.def.paramtype2 == "wallmounted" then
+ if data.def.groups.attached_node == 1 or data.def.paramtype2 == "wallmounted" then
formstring = formstring .. "This block will drop as an item when a falling block ends up inside it.\n"
else
formstring = formstring .. "This block is destroyed when a falling block ends up inside it.\n"
@@ -365,9 +362,12 @@ doc.new_category("nodes", {
if data.def.paramtype2 == "wallmounted" then
formstring = formstring .. "This block will drop as an item when it is not attached to a surrounding block.\n"
else
- formstring = formstring .. "This block will drop as an item if no collidable block is below it.\n"
+ formstring = formstring .. "This block will drop as an item when no collidable block is below it.\n"
end
end
+ if data.def.floodable == true then
+ formstring = formstring .. "Liquids can flow into this block and destroy it.\n"
+ end
-- Block appearance
--- Light