mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Handle undefined objects better
This commit is contained in:
parent
73bb3bc595
commit
7b802c547d
6 changed files with 23 additions and 76 deletions
|
@ -39,7 +39,8 @@ void scriptapi_rm_object_reference(lua_State *L, ServerActiveObject *cobj);
|
|||
void scriptapi_environment_step(lua_State *L, float dtime);
|
||||
|
||||
/* luaentity */
|
||||
void scriptapi_luaentity_add(lua_State *L, u16 id, const char *name,
|
||||
// Returns true if succesfully added into Lua; false otherwise.
|
||||
bool scriptapi_luaentity_add(lua_State *L, u16 id, const char *name,
|
||||
const char *init_state);
|
||||
void scriptapi_luaentity_rm(lua_State *L, u16 id);
|
||||
std::string scriptapi_luaentity_get_state(lua_State *L, u16 id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue