Improved global block cache

This commit is contained in:
Shoghi Cervantes
2014-10-12 17:02:27 +02:00
parent 96b61fbb92
commit 8472349caf
3 changed files with 11 additions and 11 deletions

View File

@ -471,12 +471,11 @@ abstract class Entity extends Position implements Metadatable{
$this->justCreated = false;
$isPlayer = $this instanceof Player;
if($this->dead === true and !$isPlayer){
$this->close();
Timings::$tickEntityTimer->stopTiming();
return false;
}elseif($this->dead === true){
if($this->dead === true){
$this->despawnFromAll();
if(!$isPlayer){
$this->close();
}
Timings::$tickEntityTimer->stopTiming();
return false;
}