mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-02 18:57:34 +01:00
CNC: Fix startup error and texture warnings
This commit is contained in:
parent
0f6bdb1bde
commit
349676f243
@ -2,6 +2,7 @@
|
|||||||
-- Again code is adapted from the NonCubic Blocks MOD v1.4 by yves_de_beck
|
-- Again code is adapted from the NonCubic Blocks MOD v1.4 by yves_de_beck
|
||||||
|
|
||||||
local S = technic_cnc.getter
|
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:
|
-- REGISTER NONCUBIC FORMS, CREATE MODELS AND RECIPES:
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
@ -298,6 +299,7 @@ function technic_cnc.register_program(recipeitem, suffix, model, groups, images,
|
|||||||
tiles = images,
|
tiles = images,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
use_texture_alpha = ALPHA_CLIP,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
selection_box = sbox,
|
selection_box = sbox,
|
||||||
|
@ -11,7 +11,7 @@ if rawget(_G, "intllib") then
|
|||||||
technic_cnc.getter = intllib.Getter()
|
technic_cnc.getter = intllib.Getter()
|
||||||
else
|
else
|
||||||
-- Intllib copypasta: TODO replace with the client-side translation API
|
-- 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
|
if a==nil then return s end
|
||||||
a={a,...}
|
a={a,...}
|
||||||
return s:gsub("(@?)@(%(?)(%d+)(%)?)", function(e,o,n,c)
|
return s:gsub("(@?)@(%(?)(%d+)(%)?)", function(e,o,n,c)
|
||||||
|
Loading…
Reference in New Issue
Block a user