mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Improved global block cache
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user