From e8b934602684059b7b73a671c02d37f65daf1362 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Mon, 16 Sep 2024 06:27:58 -0500 Subject: [PATCH] Make blocks breakable when not passing in node definition to mcl_autogroup.group_compatibility() --- mods/CORE/_mcl_autogroup/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mods/CORE/_mcl_autogroup/init.lua b/mods/CORE/_mcl_autogroup/init.lua index b56430bb5..2d1bcca63 100644 --- a/mods/CORE/_mcl_autogroup/init.lua +++ b/mods/CORE/_mcl_autogroup/init.lua @@ -355,6 +355,9 @@ local function overwrite() end end + -- Make sure compatibility groups are present for the below logic + ndef.groups = newgroups + if (nname ~= "ignore" and ndef.diggable) then -- Automatically assign the "solid" group for solid nodes if (ndef.walkable == nil or ndef.walkable == true) @@ -394,6 +397,11 @@ local function overwrite() -- group. newgroups["creative_breakable"] = 1 + minetest.log(dump({ + groups = ndef.groups, + newgroups = newgroups, + })) + minetest.override_item(nname, { groups = newgroups })