Add opaque group

This commit is contained in:
Wuzzy 2017-03-10 20:01:45 +01:00
parent 3bf5dfa0f8
commit d9a61e826a
2 changed files with 7 additions and 1 deletions

View file

@ -82,6 +82,11 @@ local overwrite = function()
newgroups.solid = 1
groups_changed = true
end
-- Automatically assign the “opaque” group for opaque nodes
if not (ndef.paramtype == "light" or ndef.sunlight_propagates) then
newgroups.opaque = 1
groups_changed = true
end
local function calculate_group(hardness, material, diggroup, newgroups, actual_rating, expected_rating)
local time, validity_factor