-
Notifications
You must be signed in to change notification settings - Fork 6
/
init.lua
38 lines (34 loc) · 1008 Bytes
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
digistuff = {}
local components = {
"internal",
"conductors",
"touchscreen",
"light",
"noteblock",
"camera",
"switches",
"panel",
"piezo",
"detector",
"piston",
"timer",
"cardreader",
"channelcopier",
"controller",
"memory",
"gpu",
"sillystuff",
"movestone",
}
if minetest.get_modpath("mesecons_luacontroller") then table.insert(components,"ioexpander") end
for _,name in ipairs(components) do
dofile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,name))
end
local http = minetest.request_http_api()
if not http then
minetest.log("warning","digistuff is not allowed to use the HTTP API - digilines NIC will not be available!")
minetest.log("warning","If this functionality is desired, please add digistuff to your secure.http_mods setting")
else
local qos_http = minetest.get_modpath("qos") and QoS(http, 3) or http
loadfile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,"nic"))(qos_http)
end