From f47da0c0453981929c1bde0eb47d86507c9305cd Mon Sep 17 00:00:00 2001
From: Gábriel <38207624+gabriel1379@users.noreply.github.com>
Date: Fri, 08 Mar 2024 18:44:13 +0100
Subject: [PATCH] Add grinding for pyrite from Everness mod (#633)

---
 technic_cnc/cnc_api.lua |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/technic_cnc/cnc_api.lua b/technic_cnc/cnc_api.lua
index d40e977..41fbe1b 100644
--- a/technic_cnc/cnc_api.lua
+++ b/technic_cnc/cnc_api.lua
@@ -2,6 +2,7 @@
 -- Again code is adapted from the NonCubic Blocks MOD v1.4 by yves_de_beck
 
 local S = technic_cnc.getter
+local ALPHA_CLIP = minetest.features.use_texture_alpha_string_modes and "clip" or true
 
 -- REGISTER NONCUBIC FORMS, CREATE MODELS AND RECIPES:
 ------------------------------------------------------
@@ -298,6 +299,7 @@
 		tiles         = images,
 		paramtype     = "light",
 		paramtype2    = "facedir",
+		use_texture_alpha = ALPHA_CLIP,
 		walkable      = true,
 		groups        = groups,
 		selection_box = sbox,

--
Gitblit v1.8.0