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
5 changed files with 13 additions and 3 deletions

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);
}
}