From f6a0f4aa82043effc2713bfc7107b476e28f4b5a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 2 May 2019 16:20:28 +0100 Subject: [PATCH] Player: fixed immobile interference on PlayerJoinEvent closes #2894 this should use a cleaner hack that doesn't affect plugins at all, but that's too much work for this one bug fix. --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index d3cb5e5b7..1dcc52c83 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1065,6 +1065,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ return; //avoid player spawning twice (this can only happen on 3.x with a custom malicious client) } $this->spawned = true; + $this->setImmobile(false); if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){ PermissionManager::getInstance()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS, $this); @@ -1083,7 +1084,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->server->broadcastMessage($ev->getJoinMessage()); } - $this->setImmobile(false); $this->noDamageTicks = 60; foreach($this->usedChunks as $index => $c){