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 @@ function technic_cnc.register_program(recipeitem, suffix, model, groups, images, tiles = images, paramtype = "light", paramtype2 = "facedir", + use_texture_alpha = ALPHA_CLIP, walkable = true, groups = groups, selection_box = sbox, diff --git a/technic_cnc/init.lua b/technic_cnc/init.lua index e3c1239..f1cb03b 100644 --- a/technic_cnc/init.lua +++ b/technic_cnc/init.lua @@ -11,7 +11,7 @@ if rawget(_G, "intllib") then technic_cnc.getter = intllib.Getter() else -- Intllib copypasta: TODO replace with the client-side translation API - technic.getter = function(s,a,...) + technic_cnc.getter = function(s,a,...) if a==nil then return s end a={a,...} return s:gsub("(@?)@(%(?)(%d+)(%)?)", function(e,o,n,c)