mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Bump version to 0.14.3.0 and protocol changes
This commit is contained in:
parent
ee9ba9f1a0
commit
e2d079a7df
@ -75,8 +75,8 @@ namespace pocketmine {
|
|||||||
const VERSION = "1.6dev";
|
const VERSION = "1.6dev";
|
||||||
const API_VERSION = "2.0.0";
|
const API_VERSION = "2.0.0";
|
||||||
const CODENAME = "[REDACTED]";
|
const CODENAME = "[REDACTED]";
|
||||||
const MINECRAFT_VERSION = "v0.14.2.0 alpha";
|
const MINECRAFT_VERSION = "v0.14.3.0 alpha";
|
||||||
const MINECRAFT_VERSION_NETWORK = "0.14.2.0";
|
const MINECRAFT_VERSION_NETWORK = "0.14.3.0";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Startup code. Do not look at it, it may harm you.
|
* Startup code. Do not look at it, it may harm you.
|
||||||
|
@ -30,7 +30,7 @@ interface Info{
|
|||||||
/**
|
/**
|
||||||
* Actual Minecraft: PE protocol version
|
* Actual Minecraft: PE protocol version
|
||||||
*/
|
*/
|
||||||
const CURRENT_PROTOCOL = 60;
|
const CURRENT_PROTOCOL = 70;
|
||||||
|
|
||||||
const LOGIN_PACKET = 0x8f;
|
const LOGIN_PACKET = 0x8f;
|
||||||
const PLAY_STATUS_PACKET = 0x90;
|
const PLAY_STATUS_PACKET = 0x90;
|
||||||
|
@ -38,6 +38,7 @@ class UseItemPacket extends DataPacket{
|
|||||||
public $posX;
|
public $posX;
|
||||||
public $posY;
|
public $posY;
|
||||||
public $posZ;
|
public $posZ;
|
||||||
|
public $slot;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->x = $this->getInt();
|
$this->x = $this->getInt();
|
||||||
@ -50,6 +51,7 @@ class UseItemPacket extends DataPacket{
|
|||||||
$this->posX = $this->getFloat();
|
$this->posX = $this->getFloat();
|
||||||
$this->posY = $this->getFloat();
|
$this->posY = $this->getFloat();
|
||||||
$this->posZ = $this->getFloat();
|
$this->posZ = $this->getFloat();
|
||||||
|
$this->slot = $this->getInt();
|
||||||
|
|
||||||
$this->item = $this->getSlot();
|
$this->item = $this->getSlot();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user