forked from Mirrorlandia_minetest/digistuff
Downgrade no-HTTP message to warning
This commit is contained in:
parent
8dbef5eca7
commit
8384563085
4
init.lua
4
init.lua
@ -24,8 +24,8 @@ end
|
|||||||
|
|
||||||
local http = minetest.request_http_api()
|
local http = minetest.request_http_api()
|
||||||
if not http then
|
if not http then
|
||||||
minetest.log("error","digistuff is not allowed to use the HTTP API - digilines NIC will not be available!")
|
minetest.log("warning","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")
|
minetest.log("warning","If this functionality is desired, please add digistuff to your secure.http_mods setting")
|
||||||
else
|
else
|
||||||
loadfile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,"nic"))(http)
|
loadfile(string.format("%s%s%s.lua",minetest.get_modpath(minetest.get_current_modname()),DIR_DELIM,"nic"))(http)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user