From f9d9d2b0e547a451102e7314d837dbc962097213 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 25 Jun 2014 02:21:25 +0200 Subject: [PATCH] Updated for build 8 --- src/pocketmine/Player.php | 16 +--------------- src/pocketmine/PocketMine.php | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 3fbfefaec..9f67d947a 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -620,20 +620,6 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ $this->teleport($ev->getRespawnPosition()); - //Hack to have the correct amount of slots when changing gamemode - $pk = new StartGamePacket; - $pk->seed = $this->getLevel()->getSeed(); - $pk->x = $this->x; - $pk->y = $this->y; - $pk->z = $this->z; - $pk->spawnX = (int) $this->spawnPosition->x; - $pk->spawnY = (int) $this->spawnPosition->y; - $pk->spawnZ = (int) $this->spawnPosition->z; - $pk->generator = 1; - $pk->gamemode = $this->gamemode & 0x01; - $pk->eid = 0; - $this->dataPacket($pk); - $this->spawnToAll(); $this->server->getPluginManager()->callEvent($ev = new PlayerJoinEvent($this, $this->getName() . " joined the game")); @@ -1233,7 +1219,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ $pk->spawnY = (int) $this->spawnPosition->y; $pk->spawnZ = (int) $this->spawnPosition->z; $pk->generator = 1; //0 old, 1 infinite, 2 flat - $pk->gamemode = 0; //Hack to have the correct amount of slots on gamemode change + $pk->gamemode = $this->gamemode & 0x01; $pk->eid = 0; //Always use EntityID as zero for the actual player $this->directDataPacket($pk); diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 10c6d2167..a9d80ec4a 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -75,7 +75,7 @@ namespace pocketmine { const VERSION = "Alpha_1.4dev"; const API_VERSION = "1.0.0"; const CODENAME = "絶好(Zekkou)ケーキ(Cake)"; - const MINECRAFT_VERSION = "v0.9.0 alpha build 7"; + const MINECRAFT_VERSION = "v0.9.0 alpha build 8"; const PHP_VERSION = "5.5"; if(\Phar::running(true) !== ""){