1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[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.
This commit is contained in:
red-001 2018-01-04 07:21:12 +00:00 committed by Loïc Blot
parent e7396a0c50
commit 30821ad8de
6 changed files with 54 additions and 16 deletions

View file

@ -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