mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
This commit is contained in:
		@@ -1099,8 +1099,7 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
 | 
			
		||||
	SendInventory(playersao);
 | 
			
		||||
 | 
			
		||||
	// Send HP
 | 
			
		||||
	if(g_settings->getBool("enable_damage"))
 | 
			
		||||
		SendPlayerHP(peer_id);
 | 
			
		||||
	SendPlayerHPOrDie(peer_id, playersao->getHP() == 0);
 | 
			
		||||
 | 
			
		||||
	// Send Breath
 | 
			
		||||
	SendPlayerBreath(peer_id);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user