forked from MTSR/mapserver
cleanup
This commit is contained in:
parent
b5204b7948
commit
eee305180f
@ -1,39 +0,0 @@
|
||||
|
||||
mapserver = {
|
||||
enable_crafting = minetest.settings:get("mapserver.enable_crafting"),
|
||||
|
||||
bridge = {}
|
||||
}
|
||||
|
||||
local MP = minetest.get_modpath("mapserver")
|
||||
dofile(MP.."/common.lua")
|
||||
dofile(MP.."/poi.lua")
|
||||
dofile(MP.."/train.lua")
|
||||
dofile(MP.."/label.lua")
|
||||
dofile(MP.."/border.lua")
|
||||
dofile(MP.."/legacy.lua")
|
||||
dofile(MP.."/privs.lua")
|
||||
|
||||
|
||||
-- optional mapserver-bridge stuff below
|
||||
local http = minetest.request_http_api()
|
||||
|
||||
if http then
|
||||
local mapserver_url = minetest.settings:get("mapserver.url")
|
||||
local mapserver_key = minetest.settings:get("mapserver.key")
|
||||
|
||||
if not mapserver_url then error("mapserver.url is not defined") end
|
||||
if not mapserver_key then error("mapserver.key is not defined") end
|
||||
|
||||
print("[Mapserver] starting mapserver-bridge with endpoint: " .. mapserver_url)
|
||||
dofile(MP .. "/bridge/init.lua")
|
||||
|
||||
mapserver.bridge_init(http, mapserver_url, mapserver_key)
|
||||
|
||||
else
|
||||
print("[Mapserver] bridge not active, additional infos will not be visible on the map")
|
||||
|
||||
end
|
||||
|
||||
|
||||
print("[OK] Mapserver")
|
Loading…
Reference in New Issue
Block a user