Bump version to 0.14.2.0 and protocol changes

This commit is contained in:
Intyre 2016-04-28 01:50:54 +02:00
parent 754ff9b4c4
commit ac482621a1
No known key found for this signature in database
GPG Key ID: B06D41D26935005A
5 changed files with 13 additions and 3 deletions

View File

@ -1177,6 +1177,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk = new AdventureSettingsPacket();
$pk->flags = $flags;
$pk->userPermission = 2;
$pk->globalPermission = 2;
$this->dataPacket($pk);
}

View File

@ -75,8 +75,8 @@ namespace pocketmine {
const VERSION = "1.6dev";
const API_VERSION = "2.0.0";
const CODENAME = "[REDACTED]";
const MINECRAFT_VERSION = "v0.14.0.0 alpha";
const MINECRAFT_VERSION_NETWORK = "0.14.0.0";
const MINECRAFT_VERSION = "v0.14.2.0 alpha";
const MINECRAFT_VERSION_NETWORK = "0.14.2.0";
/*
* Startup code. Do not look at it, it may harm you.

View File

@ -28,6 +28,8 @@ class AdventureSettingsPacket extends DataPacket{
const NETWORK_ID = Info::ADVENTURE_SETTINGS_PACKET;
public $flags;
public $userPermission;
public $globalPermission;
public function decode(){
@ -36,6 +38,8 @@ class AdventureSettingsPacket extends DataPacket{
public function encode(){
$this->reset();
$this->putInt($this->flags);
$this->putInt($this->userPermission);
$this->putInt($this->globalPermission);
}
}

View File

@ -30,7 +30,7 @@ interface Info{
/**
* Actual Minecraft: PE protocol version
*/
const CURRENT_PROTOCOL = 45;
const CURRENT_PROTOCOL = 60;
const LOGIN_PACKET = 0x8f;
const PLAY_STATUS_PACKET = 0x90;

View File

@ -38,6 +38,7 @@ class StartGamePacket extends DataPacket{
public $x;
public $y;
public $z;
public $unknown;
public function decode(){
@ -56,7 +57,10 @@ class StartGamePacket extends DataPacket{
$this->putFloat($this->x);
$this->putFloat($this->y);
$this->putFloat($this->z);
$this->putByte(1);
$this->putByte(1);
$this->putByte(0);
$this->putString($this->unknown);
}
}