1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Implement minetest.register_on_dieplayer()

This commit is contained in:
Perttu Ahola 2012-01-06 00:12:33 +02:00
parent bc743ca7ce
commit 4f2c1e36a1
5 changed files with 32 additions and 1 deletions

View file

@ -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){