Declare observers not opaque

This commit is contained in:
Wuzzy 2018-01-28 19:25:05 +01:00
parent 32f60c4fee
commit 093e9b0b08
3 changed files with 6 additions and 4 deletions

View file

@ -82,7 +82,8 @@ local overwrite = function()
groups_changed = true
end
-- Automatically assign the “opaque” group for opaque nodes
if not (ndef.paramtype == "light" or ndef.sunlight_propagates) then
if (not (ndef.paramtype == "light" or ndef.sunlight_propagates)) and
(ndef.groups.not_opaque == 0 or ndef.groups.not_opaque == nil) then
newgroups.opaque = 1
groups_changed = true
end