Skip to content
Snippets Groups Projects
Commit ad4e1511 authored by BuckarooBanzay's avatar BuckarooBanzay
Browse files

use "minetest.get_modpath" to detect the qos mod

parent 1af0a5d6
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,11 @@ if minetest.get_modpath("bones") then
dofile(MP.."/bones.lua")
end
local QoS
-- optional mapserver-bridge stuff below
local http = QoS and QoS(minetest.request_http_api(), 2) or minetest.request_http_api()
local http = minetest.request_http_api()
if minetest.get_modpath("qos") and http then
-- use qos-wrapped http
http = QoS(http, 2)
end
if http then
-- check if the mapserver.json is in the world-folder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment