aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2012-03-24 18:52:50 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-03-29 14:27:09 +0300
commita9ddbb4bebd05f8fd9e2ee6876a34e8cbb0d8c2f (patch)
treef1a347e8fa04632175d370fed57e7f75f677401c /builtin
parentf8c3743991a6897c7133bf35dc2699b8b5f9df7c (diff)
downloadminetest-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 'builtin')
-rw-r--r--builtin/builtin.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/builtin.lua b/builtin/builtin.lua
index c09697045..2be7a4dcf 100644
--- a/builtin/builtin.lua
+++ b/builtin/builtin.lua
@@ -794,6 +794,8 @@ minetest.registered_on_generateds, minetest.register_on_generated = make_registr
minetest.registered_on_newplayers, minetest.register_on_newplayer = make_registration()
minetest.registered_on_dieplayers, minetest.register_on_dieplayer = make_registration()
minetest.registered_on_respawnplayers, minetest.register_on_respawnplayer = make_registration()
+minetest.registered_on_joinplayers, minetest.register_on_joinplayer = make_registration()
+minetest.registered_on_leaveplayers, minetest.register_on_leaveplayer = make_registration()
--
-- Misc. API functions