mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-10 18:47:31 +01:00
Make blocks breakable when not passing in node definition to mcl_autogroup.group_compatibility()
This commit is contained in:
parent
5257e7bc80
commit
e8b9346026
@ -355,6 +355,9 @@ local function overwrite()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Make sure compatibility groups are present for the below logic
|
||||||
|
ndef.groups = newgroups
|
||||||
|
|
||||||
if (nname ~= "ignore" and ndef.diggable) then
|
if (nname ~= "ignore" and ndef.diggable) then
|
||||||
-- Automatically assign the "solid" group for solid nodes
|
-- Automatically assign the "solid" group for solid nodes
|
||||||
if (ndef.walkable == nil or ndef.walkable == true)
|
if (ndef.walkable == nil or ndef.walkable == true)
|
||||||
@ -394,6 +397,11 @@ local function overwrite()
|
|||||||
-- group.
|
-- group.
|
||||||
newgroups["creative_breakable"] = 1
|
newgroups["creative_breakable"] = 1
|
||||||
|
|
||||||
|
minetest.log(dump({
|
||||||
|
groups = ndef.groups,
|
||||||
|
newgroups = newgroups,
|
||||||
|
}))
|
||||||
|
|
||||||
minetest.override_item(nname, {
|
minetest.override_item(nname, {
|
||||||
groups = newgroups
|
groups = newgroups
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user