mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Protocol 22
This commit is contained in:
parent
68ea9b067f
commit
64c366bdb5
@ -30,7 +30,7 @@ interface Info{
|
|||||||
/**
|
/**
|
||||||
* Actual Minecraft: PE protocol version
|
* Actual Minecraft: PE protocol version
|
||||||
*/
|
*/
|
||||||
const CURRENT_PROTOCOL = 21;
|
const CURRENT_PROTOCOL = 22;
|
||||||
|
|
||||||
const LOGIN_PACKET = 0x82;
|
const LOGIN_PACKET = 0x82;
|
||||||
const PLAY_STATUS_PACKET = 0x83;
|
const PLAY_STATUS_PACKET = 0x83;
|
||||||
|
@ -35,12 +35,12 @@ class SetHealthPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->health = $this->getByte();
|
$this->health = $this->getInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function encode(){
|
public function encode(){
|
||||||
$this->reset();
|
$this->reset();
|
||||||
$this->putByte($this->health);
|
$this->putInt($this->health);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user