From 65793514fe614147c5141ae7797be402b5e6d25d Mon Sep 17 00:00:00 2001 From: DS Date: Fri, 9 Apr 2021 20:24:41 +0200 Subject: Fix use_texture_alpha warnings (#563) --- mesecons_button/init.lua | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'mesecons_button') diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index d7b84b6..9a189c8 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -13,16 +13,19 @@ mesecon.button_turnoff = function (pos) mesecon.receptor_off(pos, rules) end +local use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or nil + minetest.register_node("mesecons_button:button_off", { drawtype = "nodebox", tiles = { - "jeija_wall_button_sides.png", - "jeija_wall_button_sides.png", - "jeija_wall_button_sides.png", - "jeija_wall_button_sides.png", - "jeija_wall_button_sides.png", - "jeija_wall_button_off.png" + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_off.png" }, + use_texture_alpha = use_texture_alpha, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, @@ -66,7 +69,8 @@ minetest.register_node("mesecons_button:button_on", { "jeija_wall_button_sides.png", "jeija_wall_button_sides.png", "jeija_wall_button_on.png" - }, + }, + use_texture_alpha = use_texture_alpha, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, -- cgit v1.2.3