diff options
author | Kahrl <kahrl@gmx.net> | 2012-03-24 18:52:50 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-29 14:27:09 +0300 |
commit | a9ddbb4bebd05f8fd9e2ee6876a34e8cbb0d8c2f (patch) | |
tree | f1a347e8fa04632175d370fed57e7f75f677401c /src/scriptapi.h | |
parent | f8c3743991a6897c7133bf35dc2699b8b5f9df7c (diff) | |
download | minetest-a9ddbb4bebd05f8fd9e2ee6876a34e8cbb0d8c2f.tar.gz minetest-a9ddbb4bebd05f8fd9e2ee6876a34e8cbb0d8c2f.tar.bz2 minetest-a9ddbb4bebd05f8fd9e2ee6876a34e8cbb0d8c2f.zip |
on_joinplayer + on_leaveplayer + scriptapi_run_callbacks + bugfix
Add minetest.register_on_joinplayer and minetest.register_on_leaveplayer,
make adding new callbacks to scriptapi.cpp easier by adding
scriptapi_run_callbacks, also fix a minor bug with PlayerSAO <->
singleplayer mode interaction
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r-- | src/scriptapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h index c2c099a6d..84d3756ce 100644 --- a/src/scriptapi.h +++ b/src/scriptapi.h @@ -57,6 +57,8 @@ void scriptapi_environment_on_generated(lua_State *L, v3s16 minp, v3s16 maxp, void scriptapi_on_newplayer(lua_State *L, ServerActiveObject *player); void scriptapi_on_dieplayer(lua_State *L, ServerActiveObject *player); bool scriptapi_on_respawnplayer(lua_State *L, ServerActiveObject *player); +void scriptapi_on_joinplayer(lua_State *L, ServerActiveObject *player); +void scriptapi_on_leaveplayer(lua_State *L, ServerActiveObject *player); void scriptapi_get_creative_inventory(lua_State *L, ServerActiveObject *player); /* item callbacks */ |