Skip to content

Commit

Permalink
fix global variable warning
Browse files Browse the repository at this point in the history
also fixed some whitespace

fixes #53
  • Loading branch information
OgelGames committed May 31, 2021
1 parent 9da14a2 commit f485428
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ xp_redo = {
}

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

dofile(MP.."/utils.lua")
dofile(MP.."/hooks.lua")
dofile(MP.."/ranks.lua")
dofile(MP.."/json.lua") --json export

if http then
print("Enabling discord webhook for XP-Redo")
local webhook = dofile(MP.."/webhook.lua")
webhook(http)
print("Enabling discord webhook for XP-Redo")
local webhook = dofile(MP.."/webhook.lua")
webhook(http)
end

if not xp_redo.disable_hover_entity then
Expand All @@ -61,7 +61,7 @@ if minetest.get_modpath("areas") then
end

if minetest.settings:get_bool("enable_xp_redo_integration_test") then
dofile(MP.."/integration_test.lua")
dofile(MP.."/integration_test.lua")
end

print("[OK] XP-Redo")

0 comments on commit f485428

Please sign in to comment.