updated to work with minetest security - needed for loading binary code with loadfile
parent
df846e1375
commit
3f1a9af503
7
init.lua
7
init.lua
|
@ -17,7 +17,7 @@
|
|||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-------------------------------------------------------------------------
|
||||
local cheat = {};
|
||||
local version = "10/22/2016";
|
||||
local version = "10/27/2016";
|
||||
|
||||
anticheatsettings = {};
|
||||
dofile(minetest.get_modpath("anticheat").."/settings.lua")
|
||||
|
@ -90,7 +90,10 @@ end
|
|||
-- uncomment when obfuscating:
|
||||
--dofile(minetest.get_modpath("anticheat").."/anticheat_source.lua")
|
||||
|
||||
local anticheat_routines=loadfile(minetest.get_modpath("anticheat").."/anticheat_routines.bin")
|
||||
|
||||
local ie = minetest.request_insecure_environment() or _G;
|
||||
|
||||
local anticheat_routines = ie.loadfile(minetest.get_modpath("anticheat").."/anticheat_routines.bin")
|
||||
check_noclip, check_fly, check_player = anticheat_routines(minetest,cheat,CHECK_AGAIN,punish_cheat);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue