Protocol changes for 1.4.0 release

this is nearly the same as 1.5.0.0, except the skin packet premium boolean has been dropped.

This isn't production ready yet because the blockID table needs updating (waiting on MrARM to fix his script for that).
This commit is contained in:
Dylan K. Taylor 2018-05-17 10:36:16 +01:00
parent b333a0e24c
commit f6e71d8296
2 changed files with 3 additions and 7 deletions

View File

@ -40,8 +40,6 @@ class PlayerSkinPacket extends DataPacket{
public $newSkinName = "";
/** @var Skin */
public $skin;
/** @var bool */
public $premium = false;
protected function decodePayload(){
@ -54,7 +52,6 @@ class PlayerSkinPacket extends DataPacket{
$capeData = $this->getString();
$geometryModel = $this->getString();
$geometryData = $this->getString();
$this->premium = $this->getBool();
$this->skin = new Skin($skinId, $skinData, $capeData, $geometryModel, $geometryData);
}
@ -69,7 +66,6 @@ class PlayerSkinPacket extends DataPacket{
$this->putString($this->skin->getCapeData());
$this->putString($this->skin->getGeometryName());
$this->putString($this->skin->getGeometryData());
$this->putBool($this->premium);
}
public function handle(NetworkSession $session) : bool{

View File

@ -39,15 +39,15 @@ interface ProtocolInfo{
/**
* Actual Minecraft: PE protocol version
*/
public const CURRENT_PROTOCOL = 270;
public const CURRENT_PROTOCOL = 261;
/**
* Current Minecraft PE version reported by the server. This is usually the earliest currently supported version.
*/
public const MINECRAFT_VERSION = 'v1.5.0.0 beta';
public const MINECRAFT_VERSION = 'v1.4.0';
/**
* Version number sent to clients in ping responses.
*/
public const MINECRAFT_VERSION_NETWORK = '1.5.0.0';
public const MINECRAFT_VERSION_NETWORK = '1.4.0';
public const LOGIN_PACKET = 0x01;
public const PLAY_STATUS_PACKET = 0x02;