Don't use core in ctf_rankings

This commit is contained in:
LoneWolfHT 2022-02-12 13:57:33 -08:00 committed by GitHub
parent 1c02e617e6
commit 15984c24ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ if backend == "redis" then
local old_require = require
env.rawset(_G, "require", env.require)
rankings = env.dofile(env.core.get_modpath(env.core.get_current_modname()).."/redis.lua")
rankings = env.dofile(env.minetest.get_modpath(env.minetest.get_current_modname()).."/redis.lua")
env.rawset(_G, "require", old_require)
else
rankings = ctf_core.include_files(backend..".lua")