From 816c09c4b65b09707fa97d2fec9ced7f091873c0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 5 Aug 2016 23:07:23 +0200 Subject: =?UTF-8?q?Add=20diggable=3D=3Dfalse=20to=20=E2=80=9Cnot=20diggabl?= =?UTF-8?q?e=E2=80=9D=20factoid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3