From ac8e6ca8f7580514a950699114aea57a212b5516 Mon Sep 17 00:00:00 2001 From: sys4 Date: Sun, 28 Feb 2021 13:46:45 +0100 Subject: [PATCH] Fix deprecated use of use_texture_alpha To avoid warning messages at boot time. Breaks Minetest 5.4< compatibility. --- blocks.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks.lua b/blocks.lua index d745345..bef1695 100644 --- a/blocks.lua +++ b/blocks.lua @@ -69,7 +69,7 @@ minetest.register_node("bobblocks:block_off", { paramtype2 = "color", palette = "unifieddyes_palette_extended.png", is_ground_content = false, - use_texture_alpha = true, + use_texture_alpha = "blend", groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1, ud_param2_colorable = 1}, mesecons = {conductor={ state = mesecon.state.off, @@ -114,7 +114,7 @@ minetest.register_node("bobblocks:pole_off", { palette = "unifieddyes_palette_extended.png", sunlight_propagates = true, is_ground_content = false, - use_texture_alpha = true, + use_texture_alpha = "blend", sounds = default.node_sound_glass_defaults(), light_source = LIGHT_MAX-10, groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1, ud_param2_colorable = 1}, @@ -170,7 +170,7 @@ minetest.register_node("bobblocks:wavyblock_off", { paramtype2 = "color", palette = "unifieddyes_palette_extended.png", is_ground_content = false, - use_texture_alpha = true, + use_texture_alpha = "blend", groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1, ud_param2_colorable = 1}, mesecons = {conductor= {