1
0
Fork 0

Add digging groups only to diggable nodes

objects
Wuzzy 2017-03-30 03:07:04 +02:00
parent 044b775724
commit c12f16b73b
1 changed files with 1 additions and 1 deletions

View File

@ -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")