mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Fixes for AnimatePacket and added TextPacket::TYPE_WHISPER constant
This commit is contained in:
parent
3d2f9f0e74
commit
137972098f
@ -31,13 +31,13 @@ class AnimatePacket extends DataPacket{
|
||||
public $eid;
|
||||
|
||||
public function decode(){
|
||||
$this->action = $this->getByte();
|
||||
$this->action = $this->getVarInt();
|
||||
$this->eid = $this->getEntityId();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
$this->reset();
|
||||
$this->putByte($this->action);
|
||||
$this->putVarInt($this->action);
|
||||
$this->putEntityId($this->eid);
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ class TextPacket extends DataPacket{
|
||||
const TYPE_POPUP = 3;
|
||||
const TYPE_TIP = 4;
|
||||
const TYPE_SYSTEM = 5;
|
||||
const TYPE_WHISPER = 6;
|
||||
|
||||
public $type;
|
||||
public $source;
|
||||
|
Loading…
x
Reference in New Issue
Block a user