mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Fixed Entities not being despawned on restart if they were off-limits
This commit is contained in:
parent
60bc72c6cb
commit
d8f4e88e5d
@ -144,6 +144,9 @@ class Entity extends Position{
|
|||||||
}
|
}
|
||||||
$this->updateLast();
|
$this->updateLast();
|
||||||
$this->updatePosition();
|
$this->updatePosition();
|
||||||
|
if($this->y < 0 and $this->class !== ENTITY_PLAYER){
|
||||||
|
$this->close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateFuse(){
|
public function updateFuse(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user