Skip to content

Commit

Permalink
Replace deprecated use_texture_alpha boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jan 6, 2025
1 parent f7d5164 commit 8bffda0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homedecor_3d_extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if minetest.get_modpath("vessels") then
},
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = "blend"
})

local sbox = {
Expand All @@ -36,6 +37,7 @@ if minetest.get_modpath("vessels") then
tiles = {"homedecor_3d_vessels_shelf_glass.png"},
inventory_image = "homedecor_3d_vessels_glass_bottle_inv.png",
wield_image = "homedecor_3d_vessels_glass_bottle_inv.png",
use_texture_alpha = "blend",
selection_box = sbox
})

Expand All @@ -54,6 +56,7 @@ if minetest.get_modpath("vessels") then
tiles = {"homedecor_3d_vessels_shelf_glass.png"},
inventory_image = "homedecor_3d_vessels_drinking_glass_inv.png",
wield_image = "homedecor_3d_vessels_drinking_glass_inv.png",
use_texture_alpha = "blend",
selection_box = sbox
})
end
Expand Down
13 changes: 13 additions & 0 deletions homedecor_doors_and_gates/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,19 @@ for _, door in ipairs(door_list) do
mesh = mesh .. v .. ".obj"
})
end

local nn_a = "doors:homedecor_"..door.name.."_a"
local nn_b = "doors:homedecor_"..door.name.."_b"

if door.alpha then
local def = table.copy(core.registered_nodes[nn_a])
def.use_texture_alpha = "blend"
def.mesh = "door_a.obj" -- leaving this out will break the _a model
core.register_node(":"..nn_a, def) -- assignment when the override takes place

def = table.copy(core.registered_nodes[nn_b])
def.use_texture_alpha = "blend"
core.register_node(":"..nn_b, def)
end

--compatibility
Expand Down
3 changes: 3 additions & 0 deletions homedecor_lighting/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ for brightness_level = 0, 14 do
description = S("Ground Lantern/Light"),
mesh = "homedecor_ground_lantern.obj",
tiles = { gen_ls_tex_yellow, "homedecor_generic_metal_wrought_iron.png" },
use_texture_alpha = "opaque",
inventory_image = "homedecor_ground_lantern_inv.png",
wield_image = "homedecor_ground_lantern_inv.png",
groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1},
Expand All @@ -514,6 +515,7 @@ for brightness_level = 0, 14 do
description = S("Hanging Lantern/Light"),
mesh = "homedecor_hanging_lantern.obj",
tiles = { "homedecor_generic_metal_wrought_iron.png", gen_ls_tex_yellow },
use_texture_alpha = "opaque",
inventory_image = "homedecor_hanging_lantern_inv.png",
wield_image = "homedecor_hanging_lantern_inv.png",
groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1},
Expand Down Expand Up @@ -949,6 +951,7 @@ for _, light_brightn_name in ipairs({"off", "on"}) do
gen_ls_tex_yellow,
"homedecor_generic_metal_wrought_iron.png"
},
use_texture_alpha = "opaque",
inventory_image = "homedecor_wall_lamp_inv.png",
groups = {snappy=3, not_in_creative_inventory = nici, dig_glass=1},
light_source = onflag and (minetest.LIGHT_MAX - 3) or nil,
Expand Down
1 change: 1 addition & 0 deletions lavalamp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ minetest.register_node("lavalamp:lavalamp", {
},
},
},
use_texture_alpha = "opaque",
inventory_image = "lavalamp_lamp_inv.png",
paramtype = "light",
paramtype2 = "color",
Expand Down

0 comments on commit 8bffda0

Please sign in to comment.