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:
parent
bc743ca7ce
commit
4f2c1e36a1
5 changed files with 32 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue