mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	If player is dead, permit it to respawn, even if damages are not enabled
* Mods can do setHP function to do damages and override the enable_damage value sometimes
This commit is contained in:
		@@ -1335,7 +1335,7 @@ void Server::handleCommand_Respawn(NetworkPacket* pkt)
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (!player->isDead() || !g_settings->getBool("enable_damage"))
 | 
			
		||||
	if (!player->isDead())
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	RespawnPlayer(pkt->getPeerId());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user