mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 11:45:10 +00:00
Add digging groups only to diggable nodes
This commit is contained in:
parent
044b775724
commit
c12f16b73b
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue