mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 11:16:57 +00:00
Kill player below -16 as now the bottom of the world can be rendered, send player count
This commit is contained in:
@ -744,7 +744,7 @@ abstract class Entity extends Location implements Metadatable{
|
||||
|
||||
$this->checkBlockCollision();
|
||||
|
||||
if($this->y < 0 and $this->isAlive()){
|
||||
if($this->y <= -16 and $this->isAlive()){
|
||||
$ev = new EntityDamageEvent($this, EntityDamageEvent::CAUSE_VOID, 10);
|
||||
$this->attack($ev->getFinalDamage(), $ev);
|
||||
$hasUpdate = true;
|
||||
|
Reference in New Issue
Block a user