summaryrefslogtreecommitdiff
path: root/src/script/scripting_server.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_server.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_server.cpp')
-rw-r--r--src/script/scripting_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/scripting_server.cpp b/src/script/scripting_server.cpp
index 095216a74..1eee24c61 100644
--- a/src/script/scripting_server.cpp
+++ b/src/script/scripting_server.cpp
@@ -48,10 +48,10 @@ extern "C" {
#include "lualib.h"
}
-ServerScripting::ServerScripting(Server* server)
+ServerScripting::ServerScripting(Server* server):
+ ScriptApiBase(ScriptingType::Server)
{
setGameDef(server);
- setType(ScriptingType::Server);
// setEnv(env) is called by ScriptApiEnv::initializeEnvironment()
// once the environment has been created