aboutsummaryrefslogtreecommitdiff
path: root/src/script/scripting_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/scripting_client.cpp')
-rw-r--r--src/script/scripting_client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp
index da289e564..904f735f3 100644
--- a/src/script/scripting_client.cpp
+++ b/src/script/scripting_client.cpp
@@ -36,6 +36,7 @@ ClientScripting::ClientScripting(Client *client):
ScriptApiBase()
{
setGameDef(client);
+ setType(ScriptingType::Client);
SCRIPTAPI_PRECHECKHEADER
@@ -58,6 +59,9 @@ 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;
}