diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 9f7209b97..e9372b2d4 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -535,7 +535,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } public function canBeCollidedWith() : bool{ - return !$this->isSpectator(); + return !$this->isSpectator() and parent::canBeCollidedWith(); } public function resetFallDistance() : void{ diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 078d84665..ddde4903f 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -1101,7 +1101,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ } public function canBeCollidedWith() : bool{ - return true; + return $this->isAlive(); } protected function updateMovement(bool $teleport = false) : void{