mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-12 03:00:17 +02:00
fix hd doors/gates warnings
This commit is contained in:
@ -183,12 +183,12 @@ for _, door in ipairs(door_list) do
|
|||||||
|
|
||||||
if door.alpha then
|
if door.alpha then
|
||||||
local def = table.copy(minetest.registered_nodes[nn_a])
|
local def = table.copy(minetest.registered_nodes[nn_a])
|
||||||
def.use_texture_alpha = true
|
def.use_texture_alpha = "blend"
|
||||||
def.mesh = "door_a.obj" -- leaving this out will break the _a model
|
--def.mesh = "door_a.obj" -- leaving this out will break the _a model
|
||||||
minetest.register_node(":"..nn_a, def) -- assignment when the override takes place
|
minetest.register_node(":"..nn_a, def) -- assignment when the override takes place
|
||||||
|
|
||||||
def = table.copy(minetest.registered_nodes[nn_b])
|
def = table.copy(minetest.registered_nodes[nn_b])
|
||||||
def.use_texture_alpha = true
|
def.use_texture_alpha = "blend"
|
||||||
minetest.register_node(":"..nn_b, def)
|
minetest.register_node(":"..nn_b, def)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -307,6 +307,7 @@ for i, g in ipairs(gate_list) do
|
|||||||
description = gatedesc,
|
description = gatedesc,
|
||||||
tiles = tiles,
|
tiles = tiles,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
use_texture_alpha = "clip",
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
Reference in New Issue
Block a user