mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Updated for build 8
This commit is contained in:
parent
c8ee1da262
commit
f9d9d2b0e5
@ -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);
|
||||
|
||||
|
@ -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) !== ""){
|
||||
|
Loading…
x
Reference in New Issue
Block a user