diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-01-06 00:12:33 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-06 00:12:33 +0200 |
commit | 4f2c1e36a10ee00c6779a02dd4441fa680fb3497 (patch) | |
tree | 5987efecaf095260f72e91b69a3d215b699db205 /src/server.cpp | |
parent | bc743ca7ced997e75ee72b8f493f6ffb14879aad (diff) | |
download | minetest-4f2c1e36a10ee00c6779a02dd4441fa680fb3497.tar.gz minetest-4f2c1e36a10ee00c6779a02dd4441fa680fb3497.tar.bz2 minetest-4f2c1e36a10ee00c6779a02dd4441fa680fb3497.zip |
Implement minetest.register_on_dieplayer()
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index d1a71bdbc..d704bf861 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -4537,7 +4537,8 @@ void Server::HandlePlayerHP(Player *player, s16 damage) player->hp = 0; - //TODO: Throw items around + // Trigger scripted stuff + scriptapi_on_dieplayer(m_lua, srp); // Handle players that are not connected if(player->peer_id == PEER_ID_INEXISTENT){ |