mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 15:20:37 +02:00
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:
committed by
Nathanaël Courant
parent
dc0689018d
commit
d40946fa38
@ -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
|
||||
|
Reference in New Issue
Block a user