mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -33,11 +33,11 @@ class HurtArmorPacket extends DataPacket{
|
||||
|
||||
public $health;
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->health = $this->getVarInt();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putVarInt($this->health);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user