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
|
digistuff = {}
local components = {
"internal",
"conductors",
"touchscreen",
"light",
"noteblock",
"camera",
"button",
"panel",
"piezo",
"detector",
"piston",
}
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("error","digistuff is not allowed to use the HTTP API - digilines NIC will not be available!")
minetest.log("error","If this functionality is desired, please add digistuff to your secure.http_mods setting")
else
loadfile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,"nic"))(http)
end
|