1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 17:15:21 +02:00

[CSM] Improve security for client-sided mods (#5100)

This commit is contained in:
red-001
2017-01-28 16:24:25 +00:00
committed by Loïc Blot
parent 92b45b2a18
commit a50d07d39a
6 changed files with 172 additions and 30 deletions

View File

@@ -33,7 +33,7 @@ ClientScripting::ClientScripting(Client *client):
SCRIPTAPI_PRECHECKHEADER
// Security is mandatory client side
initializeSecurity();
initializeSecurityClient();
lua_getglobal(L, "core");
int top = lua_gettop(L);