summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 23:07:23 +0200
committerWuzzy <almikes@aol.com>2016-08-05 23:07:23 +0200
commit816c09c4b65b09707fa97d2fec9ced7f091873c0 (patch)
tree54e36c4f609b0731fdcc87368e8b32df16057906
parent8d47ead3c1a566f95aa85c42d734f06442c201e2 (diff)
Add diggable==false to “not diggable” factoid
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index ea3b285..eeea794 100644
--- a/init.lua
+++ b/init.lua
@@ -384,7 +384,7 @@ doc.new_category("nodes", {
elseif data.def.groups.dig_immediate == 3 then
formstring = formstring .. "This block can be mined by any mining tool immediately.\n"
-- Note: “unbreakable” is an unofficial group for undiggable blocks
- elseif nogroups or data.def.groups.immortal == 1 or data.def.groups.unbreakable == 1 then
+ elseif data.def.diggable == false or nogroups or data.def.groups.immortal == 1 or data.def.groups.unbreakable == 1 then
formstring = formstring .. "This block can not be mined by ordinary mining tools.\n"
end
else
@@ -392,7 +392,7 @@ doc.new_category("nodes", {
formstring = formstring .. "This block can be destroyed by any mining tool in half a second.\n"
elseif data.def.groups.dig_immediate == 3 then
formstring = formstring .. "This block can be destroyed by any mining tool immediately.\n"
- elseif nogroups or data.def.groups.immortal == 1 or data.def.groups.unbreakable == 1 then
+ elseif data.def.diggable == false or nogroups or data.def.groups.immortal == 1 or data.def.groups.unbreakable == 1 then
formstring = formstring .. "This block can not be destroyed by ordinary mining tools.\n"
end
end