Skip to content

Commit 08b13c9

Browse files
committedFeb 7, 2021
Fix deprecated alpha / use_texture_alpha use
1 parent c1b236b commit 08b13c9

12 files changed

+14
-4
lines changed
 

‎mods/beds/api.lua

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function beds.register_bed(name, def)
3131
wield_image = def.wield_image,
3232
drawtype = "nodebox",
3333
tiles = def.tiles.bottom,
34+
use_texture_alpha = "clip",
3435
paramtype = "light",
3536
paramtype2 = "facedir",
3637
is_ground_content = false,
@@ -150,6 +151,7 @@ function beds.register_bed(name, def)
150151
minetest.register_node(name .. "_top", {
151152
drawtype = "nodebox",
152153
tiles = def.tiles.top,
154+
use_texture_alpha = "clip",
153155
paramtype = "light",
154156
paramtype2 = "facedir",
155157
is_ground_content = false,

‎mods/default/functions.lua

+1
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ function default.register_mesepost(name, def)
463463
},
464464
paramtype = "light",
465465
tiles = {def.texture, def.texture, post_texture_dark, post_texture_dark, post_texture, post_texture},
466+
use_texture_alpha = "opaque",
466467
light_source = default.LIGHT_MAX,
467468
sunlight_propagates = true,
468469
is_ground_content = false,

‎mods/default/nodes.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ minetest.register_node("default:water_source", {
22132213
},
22142214
},
22152215
},
2216-
alpha = 191,
2216+
use_texture_alpha = "blend",
22172217
paramtype = "light",
22182218
walkable = false,
22192219
pointable = false,
@@ -2258,7 +2258,7 @@ minetest.register_node("default:water_flowing", {
22582258
},
22592259
},
22602260
},
2261-
alpha = 191,
2261+
use_texture_alpha = "blend",
22622262
paramtype = "light",
22632263
paramtype2 = "flowingliquid",
22642264
walkable = false,
@@ -2304,7 +2304,7 @@ minetest.register_node("default:river_water_source", {
23042304
},
23052305
},
23062306
},
2307-
alpha = 160,
2307+
use_texture_alpha = "blend",
23082308
paramtype = "light",
23092309
walkable = false,
23102310
pointable = false,
@@ -2354,7 +2354,7 @@ minetest.register_node("default:river_water_flowing", {
23542354
},
23552355
},
23562356
},
2357-
alpha = 160,
2357+
use_texture_alpha = "blend",
23582358
paramtype = "light",
23592359
paramtype2 = "flowingliquid",
23602360
walkable = false,
@@ -2578,6 +2578,7 @@ local function register_sign(material, desc, def)
25782578
sunlight_propagates = true,
25792579
is_ground_content = false,
25802580
walkable = false,
2581+
use_texture_alpha = "opaque",
25812582
node_box = {
25822583
type = "wallmounted",
25832584
wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
-126 Bytes
Loading
Loading
Loading
-4 Bytes
Loading
Loading
Loading

‎mods/default/torch.lua

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ minetest.register_node("default:torch", {
2929
name = "default_torch_on_floor_animated.png",
3030
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
3131
}},
32+
use_texture_alpha = "clip",
3233
paramtype = "light",
3334
paramtype2 = "wallmounted",
3435
sunlight_propagates = true,
@@ -81,6 +82,7 @@ minetest.register_node("default:torch_wall", {
8182
name = "default_torch_on_floor_animated.png",
8283
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
8384
}},
85+
use_texture_alpha = "clip",
8486
paramtype = "light",
8587
paramtype2 = "wallmounted",
8688
sunlight_propagates = true,
@@ -105,6 +107,7 @@ minetest.register_node("default:torch_ceiling", {
105107
name = "default_torch_on_floor_animated.png",
106108
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
107109
}},
110+
use_texture_alpha = "clip",
108111
paramtype = "light",
109112
paramtype2 = "wallmounted",
110113
sunlight_propagates = true,

‎mods/doors/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ function doors.register(name, def)
436436
def.buildable_to = false
437437
def.selection_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
438438
def.collision_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
439+
def.use_texture_alpha = "clip"
439440

440441
def.mesh = "door_a.obj"
441442
minetest.register_node(":" .. name .. "_a", def)
@@ -581,6 +582,7 @@ function doors.register_trapdoor(name, def)
581582
def.paramtype = "light"
582583
def.paramtype2 = "facedir"
583584
def.is_ground_content = false
585+
def.use_texture_alpha = "clip"
584586

585587
if def.protected then
586588
def.can_dig = can_dig_door

‎mods/flowers/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ local waterlily_def = {
279279
tiles = {"flowers_waterlily.png", "flowers_waterlily_bottom.png"},
280280
inventory_image = "flowers_waterlily.png",
281281
wield_image = "flowers_waterlily.png",
282+
use_texture_alpha = "clip",
282283
liquids_pointable = true,
283284
walkable = false,
284285
buildable_to = true,

0 commit comments

Comments
 (0)
Please sign in to comment.