mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
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:
@@ -1662,7 +1662,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->processMovement($tickDiff);
|
$this->processMovement($tickDiff);
|
||||||
$this->entityBaseTick($tickDiff);
|
$this->entityBaseTick($tickDiff);
|
||||||
|
|
||||||
if(!$this->isSpectator()){
|
if(!$this->isSpectator() and $this->isAlive()){
|
||||||
$this->checkNearEntities($tickDiff);
|
$this->checkNearEntities($tickDiff);
|
||||||
|
|
||||||
if($this->speed !== null){
|
if($this->speed !== null){
|
||||||
|
Reference in New Issue
Block a user