1
0

Removed cBlockEntity:CreateByBlockType() from the Lua API.

Plugins cannot be allowed to create block entities, that would result in memory leaks.
This commit is contained in:
madmaxoft
2013-11-15 10:15:27 +01:00
parent 90fc51c4d0
commit 49d6afd501
3 changed files with 4 additions and 45 deletions

View File

@@ -47,13 +47,13 @@ public:
m_World = a_World;
}
// tolua_begin
/// Creates a new block entity for the specified block type
/// If a_World is valid, then the entity is created bound to that world
/// Returns NULL for unknown block types
static cBlockEntity * CreateByBlockType(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World = NULL);
// tolua_begin
// Position, in absolute block coordinates:
int GetPosX(void) const { return m_PosX; }
int GetPosY(void) const { return m_PosY; }