From f7c23e89f0146234fc02a030d5b2d0b955688fa3 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 1 Jul 2014 01:19:24 +0200 Subject: [PATCH] Added move block while being teleported after spawning --- src/pocketmine/Player.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 6541346749..18a833701c 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -585,6 +585,12 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ } } + if(count($this->usedChunks) < 8 and $this->spawned === true){ + $this->blocked = true; + }elseif($this->spawned === true){ + $this->blocked = false; + } + if(count($this->usedChunks) >= 56 and $this->spawned === false){ $spawned = 0; foreach($this->usedChunks as $d){