summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
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