From c4359ff65cd8e4e754442b9f2ef7051a8eaa4241 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 27 Apr 2014 21:02:48 -0400 Subject: Use "core" namespace internally --- src/script/scripting_game.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/script/scripting_game.cpp') diff --git a/src/script/scripting_game.cpp b/src/script/scripting_game.cpp index fccd10722..e716bc979 100644 --- a/src/script/scripting_game.cpp +++ b/src/script/scripting_game.cpp @@ -19,7 +19,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "scripting_game.h" #include "server.h" -#include "filesys.h" #include "log.h" #include "cpp_api/s_internal.h" #include "lua_api/l_base.h" @@ -52,17 +51,9 @@ GameScripting::GameScripting(Server* server) //TODO add security - luaL_openlibs(getStack()); - SCRIPTAPI_PRECHECKHEADER - lua_pushstring(L, DIR_DELIM); - lua_setglobal(L, "DIR_DELIM"); - - // Create the main minetest table - lua_newtable(L); - lua_setglobal(L, "minetest"); - lua_getglobal(L, "minetest"); + lua_getglobal(L, "core"); int top = lua_gettop(L); lua_newtable(L); -- cgit v1.2.3