Don't check entity movement or in-air ticks if player dies due to movement, close #1226

Not an ideal solution but it'll do.
This commit is contained in:
Dylan K. Taylor 2017-08-20 09:48:50 +01:00
parent bed68a012d
commit 5b3bed8b06

View File

@ -1662,7 +1662,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->processMovement($tickDiff);
$this->entityBaseTick($tickDiff);
if(!$this->isSpectator()){
if(!$this->isSpectator() and $this->isAlive()){
$this->checkNearEntities($tickDiff);
if($this->speed !== null){