forked from minetest-mods/technic
		
	CNC: Fix startup error and texture warnings
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user