From 9f373d65281836b1bbfb0069707a8eaa1aeb0c53 Mon Sep 17 00:00:00 2001
From: SmallJoker <mk939@ymail.com>
Date: Sat, 03 Aug 2024 08:25:13 +0200
Subject: [PATCH] technic_cnc: Add group 'cracky'

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

diff --git a/technic_cnc/cnc_api.lua b/technic_cnc/cnc_api.lua
index 3026b47..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,
@@ -325,11 +327,10 @@
 	end
 end
 
-
 -- REGISTER NEW TECHNIC_CNC_API's PART 2: technic_cnc..register_element_end(subname, recipeitem, groups, images, desc_element_xyz)
 -----------------------------------------------------------------------------------------------------------------------
 function technic_cnc.register_slope_edge_etc(recipeitem, groups, images, desc_slope, desc_slope_lying, desc_slope_upsdown, desc_slope_edge, desc_slope_inner_edge, desc_slope_upsdwn_edge, desc_slope_upsdwn_inner_edge, desc_pyramid, desc_spike, desc_onecurvededge, desc_twocurvededge, desc_cylinder, desc_cylinder_horizontal, desc_spheroid, desc_element_straight, desc_element_edge, desc_element_t, desc_element_cross, desc_element_end)
-
+		-- TODO: Remove this evil sorcery
          technic_cnc.register_slope(recipeitem, groups, images, desc_slope)
          technic_cnc.register_slope_lying(recipeitem, groups, images, desc_slope_lying)
          technic_cnc.register_slope_upsdown(recipeitem, groups, images, desc_slope_upsdown)
@@ -354,10 +355,12 @@
 -- REGISTER STICKS: noncubic.register_xyz(recipeitem, groups, images, desc_element_xyz)
 ------------------------------------------------------------------------------------------------------------
 function technic_cnc.register_stick_etc(recipeitem, groups, images, desc_stick)
+		-- TODO: Remove this evil sorcery
          technic_cnc.register_stick(recipeitem, groups, images, desc_stick)
 end
 
 function technic_cnc.register_elements(recipeitem, groups, images, desc_element_straight_double, desc_element_edge_double, desc_element_t_double, desc_element_cross_double, desc_element_end_double)
+		-- TODO: Remove this evil sorcery
          technic_cnc.register_element_straight_double(recipeitem, groups, images, desc_element_straight_double)
          technic_cnc.register_element_edge_double(recipeitem, groups, images, desc_element_edge_double)
          technic_cnc.register_element_t_double(recipeitem, groups, images, desc_element_t_double)

--
Gitblit v1.8.0