Fixed player catching fire after death

This commit is contained in:
Shoghi Cervantes 2013-09-05 00:39:06 +02:00
parent c11ee468a2
commit ccac35d5a2

View File

@ -1618,6 +1618,7 @@ class Player{
}
$this->craftingItems = array();
$this->toCraft = array();
$this->teleport($this->spawnPosition);
if($this->entity instanceof Entity){
$this->entity->fire = 0;
$this->entity->air = 300;
@ -1627,7 +1628,6 @@ class Player{
break;
}
$this->sendInventory();
$this->teleport($this->spawnPosition);
$this->blocked = false;
$this->server->handle("player.respawn", $this);
break;