From 1949d88b0627450e6296db802a33f05c077887e1 Mon Sep 17 00:00:00 2001 From: David Leal Date: Thu, 29 Dec 2022 13:32:42 -0600 Subject: [PATCH] Fix alpha texture warnings (#34) --- nodes.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nodes.lua b/nodes.lua index cc9f2c9..eed8069 100644 --- a/nodes.lua +++ b/nodes.lua @@ -85,6 +85,7 @@ register_node("maptools:ignore_like", { tiles = {"invisible.png"}, paramtype = "light", sunlight_propagates = true, + use_texture_alpha = "clip", }) register_node("maptools:ignore_like_no_clip", { @@ -94,6 +95,7 @@ register_node("maptools:ignore_like_no_clip", { paramtype = "light", walkable = false, sunlight_propagates = true, + use_texture_alpha = "clip", }) @@ -104,6 +106,7 @@ register_node("maptools:ignore_like_no_point", { paramtype = "light", pointable = false, sunlight_propagates = true, + use_texture_alpha = "clip", }) register_node("maptools:ignore_like_no_clip_no_point", { @@ -124,6 +127,7 @@ register_node("maptools:fullclip_face", { paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5}, @@ -141,6 +145,7 @@ register_node("maptools:playerclip_bottom", { pointable = false, paramtype = "light", sunlight_propagates = true, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5}, @@ -158,6 +163,7 @@ register_node("maptools:playerclip_top", { pointable = false, paramtype = "light", sunlight_propagates = true, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = {-0.5, 0.4999, -0.5, 0.5, 0.5, 0.5}, @@ -176,6 +182,7 @@ for pusher_num=1,10,1 do paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, + use_texture_alpha = "clip", node_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5},