From c12f16b73b00a0756f2828528ed6ff6acab6cf5e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 30 Mar 2017 03:07:04 +0200 Subject: [PATCH] Add digging groups only to diggable nodes --- mods/CORE/mcl_autogroup/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CORE/mcl_autogroup/init.lua b/mods/CORE/mcl_autogroup/init.lua index 982a4f4750..f53fd37c1c 100644 --- a/mods/CORE/mcl_autogroup/init.lua +++ b/mods/CORE/mcl_autogroup/init.lua @@ -72,7 +72,7 @@ local overwrite = function() for nname, ndef in pairs(minetest.registered_nodes) do local groups_changed = false local newgroups = table.copy(ndef.groups) - if (nname ~= "ignore") then + if (nname ~= "ignore" and ndef.diggable) then -- Automatically assign the “solid” group for solid nodes if (ndef.walkable == nil or ndef.walkable == true) and (ndef.collision_box == nil or ndef.collision_box.type == "regular")