Sires
2018-03-15 e12220be79e25c1c5cb866e1e98091d35079cd3e
commit | author | age
dc0689 1 local modpath = minetest.get_modpath("technic_cnc")
VD 2
3 technic_cnc = {}
4
d40946 5 technic_cnc.technic_modpath = minetest.get_modpath("technic")
VD 6
7 technic_cnc.use_technic = technic_cnc.technic_modpath
8                           and minetest.settings:get_bool("technic_cnc_use_technic") ~= false
9
dc0689 10 if rawget(_G, "intllib") then
VD 11     technic_cnc.getter = intllib.Getter()
12 else
13     technic_cnc.getter = function(s,a,...)if a==nil then return s end a={a,...}return s:gsub("(@?)@(%(?)(%d+)(%)?)",function(e,o,n,c)if e==""then return a[tonumber(n)]..(o==""and c or"")else return"@"..o..n..c end end) end
14 end
15
16 dofile(modpath.."/cnc.lua")
17 dofile(modpath.."/cnc_api.lua")
18 dofile(modpath.."/cnc_materials.lua")