Skip to content

Commit

Permalink
Fix deprecated alpha / use_texture_alpha use
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 7, 2021
1 parent c1b236b commit 08b13c9
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions mods/beds/api.lua
Expand Up @@ -31,6 +31,7 @@ function beds.register_bed(name, def)
wield_image = def.wield_image,
drawtype = "nodebox",
tiles = def.tiles.bottom,
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
Expand Down Expand Up @@ -150,6 +151,7 @@ function beds.register_bed(name, def)
minetest.register_node(name .. "_top", {
drawtype = "nodebox",
tiles = def.tiles.top,
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
Expand Down
1 change: 1 addition & 0 deletions mods/default/functions.lua
Expand Up @@ -463,6 +463,7 @@ function default.register_mesepost(name, def)
},
paramtype = "light",
tiles = {def.texture, def.texture, post_texture_dark, post_texture_dark, post_texture, post_texture},
use_texture_alpha = "opaque",
light_source = default.LIGHT_MAX,
sunlight_propagates = true,
is_ground_content = false,
Expand Down
9 changes: 5 additions & 4 deletions mods/default/nodes.lua
Expand Up @@ -2213,7 +2213,7 @@ minetest.register_node("default:water_source", {
},
},
},
alpha = 191,
use_texture_alpha = "blend",
paramtype = "light",
walkable = false,
pointable = false,
Expand Down Expand Up @@ -2258,7 +2258,7 @@ minetest.register_node("default:water_flowing", {
},
},
},
alpha = 191,
use_texture_alpha = "blend",
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
Expand Down Expand Up @@ -2304,7 +2304,7 @@ minetest.register_node("default:river_water_source", {
},
},
},
alpha = 160,
use_texture_alpha = "blend",
paramtype = "light",
walkable = false,
pointable = false,
Expand Down Expand Up @@ -2354,7 +2354,7 @@ minetest.register_node("default:river_water_flowing", {
},
},
},
alpha = 160,
use_texture_alpha = "blend",
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
Expand Down Expand Up @@ -2578,6 +2578,7 @@ local function register_sign(material, desc, def)
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
use_texture_alpha = "opaque",
node_box = {
type = "wallmounted",
wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
Expand Down
Binary file modified mods/default/textures/default_river_water.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mods/default/textures/default_river_water_flowing_animated.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mods/default/textures/default_water.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mods/default/textures/default_water_flowing_animated.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mods/default/textures/default_water_source_animated.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mods/default/torch.lua
Expand Up @@ -29,6 +29,7 @@ minetest.register_node("default:torch", {
name = "default_torch_on_floor_animated.png",
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
}},
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
Expand Down Expand Up @@ -81,6 +82,7 @@ minetest.register_node("default:torch_wall", {
name = "default_torch_on_floor_animated.png",
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
}},
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
Expand All @@ -105,6 +107,7 @@ minetest.register_node("default:torch_ceiling", {
name = "default_torch_on_floor_animated.png",
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
}},
use_texture_alpha = "clip",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
Expand Down
2 changes: 2 additions & 0 deletions mods/doors/init.lua
Expand Up @@ -436,6 +436,7 @@ function doors.register(name, def)
def.buildable_to = false
def.selection_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
def.collision_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
def.use_texture_alpha = "clip"

def.mesh = "door_a.obj"
minetest.register_node(":" .. name .. "_a", def)
Expand Down Expand Up @@ -581,6 +582,7 @@ function doors.register_trapdoor(name, def)
def.paramtype = "light"
def.paramtype2 = "facedir"
def.is_ground_content = false
def.use_texture_alpha = "clip"

if def.protected then
def.can_dig = can_dig_door
Expand Down
1 change: 1 addition & 0 deletions mods/flowers/init.lua
Expand Up @@ -279,6 +279,7 @@ local waterlily_def = {
tiles = {"flowers_waterlily.png", "flowers_waterlily_bottom.png"},
inventory_image = "flowers_waterlily.png",
wield_image = "flowers_waterlily.png",
use_texture_alpha = "clip",
liquids_pointable = true,
walkable = false,
buildable_to = true,
Expand Down

0 comments on commit 08b13c9

Please sign in to comment.