diff options
author | Wuzzy <almikes@aol.com> | 2016-08-05 23:07:23 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-05 23:07:23 +0200 |
commit | 816c09c4b65b09707fa97d2fec9ced7f091873c0 (patch) | |
tree | 54e36c4f609b0731fdcc87368e8b32df16057906 | |
parent | 8d47ead3c1a566f95aa85c42d734f06442c201e2 (diff) |
Add diggable==false to “not diggable” factoid
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |