summaryrefslogtreecommitdiff
path: root/src/script/scripting_client.cpp
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2018-01-04 07:21:12 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-04 08:21:12 +0100
commit30821ad8deb42728fbba9de60dda31033f70aaac (patch)
tree93e98b7699736fb98244b3bb586413bb1ed9d277 /src/script/scripting_client.cpp
parente7396a0c5060eccf3d4aea9b83647e1d02df308b (diff)
downloadminetest-30821ad8deb42728fbba9de60dda31033f70aaac.tar.gz
minetest-30821ad8deb42728fbba9de60dda31033f70aaac.tar.bz2
minetest-30821ad8deb42728fbba9de60dda31033f70aaac.zip
[CSM] Don't load the IO library. (#6087)
* [CSM] Don't load the IO library. * Rename the function to match the Lua API function name and add a missing `const` * Add a comment to explain some strange code and fix the other issues pointed out by shadowninja.
Diffstat (limited to 'src/script/scripting_client.cpp')
-rw-r--r--src/script/scripting_client.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp
index 29836c47b..14cdc199b 100644
--- a/src/script/scripting_client.cpp
+++ b/src/script/scripting_client.cpp
@@ -33,10 +33,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "lua_api/l_localplayer.h"
#include "lua_api/l_camera.h"
-ClientScripting::ClientScripting(Client *client)
+ClientScripting::ClientScripting(Client *client):
+ ScriptApiBase(ScriptingType::Client)
{
setGameDef(client);
- setType(ScriptingType::Client);
SCRIPTAPI_PRECHECKHEADER
@@ -59,9 +59,6 @@ ClientScripting::ClientScripting(Client *client)
lua_pushstring(L, "client");
lua_setglobal(L, "INIT");
- lua_pushstring(L, "/");
- lua_setglobal(L, "DIR_DELIM");
-
infostream << "SCRIPTAPI: Initialized client game modules" << std::endl;
}