aboutsummaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/client_lua_api.txt')
0 files changed, 0 insertions, 0 deletions
5ea7d2c083cd5a899f1d75104 (patch) treeeca3cfd0f7bc711a6043cdf622746f2d99608cb9 /src/jthread/pthread parent462003363f7a80c96142ef1cfa9930c508970870 (diff)downloadminetest-29110d5428825d95ea7d2c083cd5a899f1d75104.tar.gz
minetest-29110d5428825d95ea7d2c083cd5a899f1d75104.tar.bz2
minetest-29110d5428825d95ea7d2c083cd5a899f1d75104.zip
Fix handling of missing auth.txt in the new handler
Diffstat (limited to 'src/jthread/pthread')
0 files changed, 0 insertions, 0 deletions
yright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "scripting_game.h" #include "server.h" #include "log.h" #include "settings.h" #include "cpp_api/s_internal.h" #include "lua_api/l_areastore.h" #include "lua_api/l_base.h" #include "lua_api/l_craft.h" #include "lua_api/l_env.h" #include "lua_api/l_inventory.h" #include "lua_api/l_item.h" #include "lua_api/l_mapgen.h" #include "lua_api/l_nodemeta.h" #include "lua_api/l_nodetimer.h" #include "lua_api/l_noise.h" #include "lua_api/l_object.h" #include "lua_api/l_particles.h" #include "lua_api/l_rollback.h" #include "lua_api/l_server.h" #include "lua_api/l_util.h" #include "lua_api/l_vmanip.h" #include "lua_api/l_settings.h" #include "lua_api/l_http.h" extern "C" { #include "lualib.h" } GameScripting::GameScripting(Server* server) { setServer(server); // setEnv(env) is called by ScriptApiEnv::initializeEnvironment() // once the environment has been created SCRIPTAPI_PRECHECKHEADER if (g_settings->getBool("secure.enable_security")) { initializeSecurity(); } lua_getglobal(L, "core"); int top = lua_gettop(L); lua_newtable(L); lua_setfield(L, -2, "object_refs"); lua_newtable(L); lua_setfield(L, -2, "luaentities"); // Initialize our lua_api modules InitializeModApi(L, top); lua_pop(L, 1); // Push builtin initialization type lua_pushstring(L, "game"); lua_setglobal(L, "INIT");