esp: fix cheat registration

We should merge dragonfire sometime :]
This commit is contained in:
cron 2020-11-15 16:52:11 +00:00
parent 4cb4d124f5
commit 0b535363ab

View File

@ -64,6 +64,8 @@ minetest.register_globalstep(function()
end
end)
if (_G["minetest"]["register_cheat"] == nil) then
if (_G["minetest"]["register_cheat"] ~= nil) then
minetest.register_cheat("NodeESP", "Render", "espactive")
else
minetest.settings:set_bool('espactive',true)
end