CNC: Fix startup error and texture warnings

This commit is contained in:
SmallJoker 2022-06-06 21:19:04 +02:00
parent 0f6bdb1bde
commit 349676f243
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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)