Kill player below -16 as now the bottom of the world can be rendered, send player count

This commit is contained in:
Shoghi Cervantes
2015-05-15 16:51:20 +02:00
parent 76e6ccebd5
commit 7a34417e67
4 changed files with 16 additions and 2 deletions

View File

@ -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;