forked from Mirrorlandia_minetest/minetest
CSM: Fix itemstack:get_meta() 'metadata' indexing error
This commit is contained in:
parent
23677be951
commit
b0baa698a4
@ -243,6 +243,7 @@ void ScriptApiSecurity::initializeSecurityClient()
|
|||||||
"rawset",
|
"rawset",
|
||||||
"select",
|
"select",
|
||||||
"setfenv",
|
"setfenv",
|
||||||
|
// getmetatable can be used to escape the sandbox
|
||||||
"setmetatable",
|
"setmetatable",
|
||||||
"tonumber",
|
"tonumber",
|
||||||
"tostring",
|
"tostring",
|
||||||
|
@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include "lua_api/l_client.h"
|
#include "lua_api/l_client.h"
|
||||||
#include "lua_api/l_env.h"
|
#include "lua_api/l_env.h"
|
||||||
#include "lua_api/l_item.h"
|
#include "lua_api/l_item.h"
|
||||||
|
#include "lua_api/l_itemstackmeta.h"
|
||||||
#include "lua_api/l_minimap.h"
|
#include "lua_api/l_minimap.h"
|
||||||
#include "lua_api/l_modchannels.h"
|
#include "lua_api/l_modchannels.h"
|
||||||
#include "lua_api/l_particles_local.h"
|
#include "lua_api/l_particles_local.h"
|
||||||
@ -67,6 +68,7 @@ ClientScripting::ClientScripting(Client *client):
|
|||||||
void ClientScripting::InitializeModApi(lua_State *L, int top)
|
void ClientScripting::InitializeModApi(lua_State *L, int top)
|
||||||
{
|
{
|
||||||
LuaItemStack::Register(L);
|
LuaItemStack::Register(L);
|
||||||
|
ItemStackMetaRef::Register(L);
|
||||||
StorageRef::Register(L);
|
StorageRef::Register(L);
|
||||||
LuaMinimap::Register(L);
|
LuaMinimap::Register(L);
|
||||||
NodeMetaRef::RegisterClient(L);
|
NodeMetaRef::RegisterClient(L);
|
||||||
|
Loading…
Reference in New Issue
Block a user