Skip to content

Commit

Permalink
check for minetest.request_http_api before calling it
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Sep 2, 2024
1 parent fdb949d commit 7ee2f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if minetest.get_modpath("bones") then
dofile(MP.."/bones.lua")
end

local http = minetest.request_http_api()
local http = minetest.request_http_api and minetest.request_http_api()
if minetest.get_modpath("qos") and http then
-- use qos-wrapped http
http = QoS(http, 2)
Expand Down

0 comments on commit 7ee2f4f

Please sign in to comment.