allow CNC to work without technic

minetest.conf technic_cnc_use_technic = false disables
use of power, returns items instantly, uses only default
stuff in craft recipe

(defaults to enabled if technic is installed)
This commit is contained in:
Vanessa Dannenberg
2018-11-25 08:13:56 -05:00
committed by Nathanaël Courant
parent dc0689018d
commit d40946fa38
5 changed files with 193 additions and 114 deletions

View File

@ -2,6 +2,11 @@ local modpath = minetest.get_modpath("technic_cnc")
technic_cnc = {}
technic_cnc.technic_modpath = minetest.get_modpath("technic")
technic_cnc.use_technic = technic_cnc.technic_modpath
and minetest.settings:get_bool("technic_cnc_use_technic") ~= false
if rawget(_G, "intllib") then
technic_cnc.getter = intllib.Getter()
else