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