forked from nalc/homedecor_modpack
limited door alpha usage to just the exterior fancy door
since it's the only one that actually needs it.
This commit is contained in:
parent
77d192aa5f
commit
f383207166
@ -23,6 +23,10 @@ for i in ipairs(sides) do
|
|||||||
local doordesc = homedecor_door_models[j][2]
|
local doordesc = homedecor_door_models[j][2]
|
||||||
local nodeboxes_top = nil
|
local nodeboxes_top = nil
|
||||||
local nodeboxes_bottom = nil
|
local nodeboxes_bottom = nil
|
||||||
|
local texalpha = false
|
||||||
|
if doorname == "exterior_fancy" then
|
||||||
|
texalpha = true
|
||||||
|
end
|
||||||
|
|
||||||
if side == "left" then
|
if side == "left" then
|
||||||
nodeboxes_top = homedecor_door_models[j][3]
|
nodeboxes_top = homedecor_door_models[j][3]
|
||||||
@ -77,7 +81,7 @@ for i in ipairs(sides) do
|
|||||||
groups = {snappy=3, not_in_creative_inventory=1},
|
groups = {snappy=3, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = texalpha,
|
||||||
selection_box = selectboxes_top,
|
selection_box = selectboxes_top,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -104,7 +108,7 @@ for i in ipairs(sides) do
|
|||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = texalpha,
|
||||||
selection_box = selectboxes_bottom,
|
selection_box = selectboxes_bottom,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
Loading…
Reference in New Issue
Block a user