mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Fixed player catching fire after death
This commit is contained in:
parent
c11ee468a2
commit
ccac35d5a2
1 changed files with 1 additions and 1 deletions
|
|
@ -1618,6 +1618,7 @@ class Player{
|
||||||
}
|
}
|
||||||
$this->craftingItems = array();
|
$this->craftingItems = array();
|
||||||
$this->toCraft = array();
|
$this->toCraft = array();
|
||||||
|
$this->teleport($this->spawnPosition);
|
||||||
if($this->entity instanceof Entity){
|
if($this->entity instanceof Entity){
|
||||||
$this->entity->fire = 0;
|
$this->entity->fire = 0;
|
||||||
$this->entity->air = 300;
|
$this->entity->air = 300;
|
||||||
|
|
@ -1627,7 +1628,6 @@ class Player{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->sendInventory();
|
$this->sendInventory();
|
||||||
$this->teleport($this->spawnPosition);
|
|
||||||
$this->blocked = false;
|
$this->blocked = false;
|
||||||
$this->server->handle("player.respawn", $this);
|
$this->server->handle("player.respawn", $this);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue