Fix invisible faces on glass nodeboxes
This commit is contained in:
parent
e679dd442e
commit
67212a1c6c
@ -206,6 +206,11 @@ local function shady(w)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function tiles(m, ndef)
|
||||||
|
if m:find("glass") then return {"default_"..m..".png"} end
|
||||||
|
return ndef.tiles
|
||||||
|
end
|
||||||
|
|
||||||
for n = 1, #def do
|
for n = 1, #def do
|
||||||
for m = 1, #material do
|
for m = 1, #material do
|
||||||
local w, x = def[n], material[m]
|
local w, x = def[n], material[m]
|
||||||
@ -217,7 +222,7 @@ for m = 1, #material do
|
|||||||
description = description(x, w[1]),
|
description = description(x, w[1]),
|
||||||
light_source = ndef.light_source,
|
light_source = ndef.light_source,
|
||||||
sounds = ndef.sounds,
|
sounds = ndef.sounds,
|
||||||
tiles = ndef.tiles,
|
tiles = tiles(x, ndef),
|
||||||
groups = groups(x),
|
groups = groups(x),
|
||||||
node_box = {type = "fixed", fixed = w[2]},
|
node_box = {type = "fixed", fixed = w[2]},
|
||||||
sunlight_propagates = shady(w[1]),
|
sunlight_propagates = shady(w[1]),
|
||||||
|
Loading…
Reference in New Issue
Block a user