Skip to content

Commit

Permalink
Optional QoS support (#50)
Browse files Browse the repository at this point in the history
* Wrap HTTP API with QoS when available
* Optional QoS support
* Add QoS to luacheck read only globals
  • Loading branch information
S-S-X authored Mar 15, 2021
1 parent 8a16614 commit 081a016
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ read_globals = {
-- Deps
"default", "mesecon", "hb",
"screwdriver", "areas", "protector",
"woodcutting"
"woodcutting",
"QoS",
}
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ xp_redo = {
}

-- optional mapserver-bridge stuff below
local http = minetest.request_http_api()
local http = QoS and QoS(minetest.request_http_api(), 2) or minetest.request_http_api()

dofile(MP.."/utils.lua")
dofile(MP.."/hooks.lua")
Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name = xp_redo
depends = default
optional_depends = protector,doors,mobs_redo,mobs_animal,mobs_monster,mesecons_mvps,hudbars,screwdriver,woodcutting
optional_depends = qos,protector,doors,mobs_redo,mobs_animal,mobs_monster,mesecons_mvps,hudbars,screwdriver,woodcutting

0 comments on commit 081a016

Please sign in to comment.