diff --git a/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php b/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php index 08fac729fe..23b51838db 100644 --- a/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php +++ b/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php @@ -52,12 +52,6 @@ class CraftingDataPacket extends DataPacket{ public $decodedEntries = []; - public function clean(){ - $this->entries = []; - $this->decodedEntries = []; - return parent::clean(); - } - protected function decodePayload() : void{ $this->decodedEntries = []; $recipeCount = $this->getUnsignedVarInt(); diff --git a/src/pocketmine/network/mcpe/protocol/CraftingEventPacket.php b/src/pocketmine/network/mcpe/protocol/CraftingEventPacket.php index 7b6332f15f..acb196197c 100644 --- a/src/pocketmine/network/mcpe/protocol/CraftingEventPacket.php +++ b/src/pocketmine/network/mcpe/protocol/CraftingEventPacket.php @@ -43,12 +43,6 @@ class CraftingEventPacket extends DataPacket{ /** @var Item[] */ public $output = []; - public function clean(){ - $this->input = []; - $this->output = []; - return parent::clean(); - } - protected function decodePayload() : void{ $this->windowId = $this->getByte(); $this->type = $this->getVarInt(); diff --git a/src/pocketmine/network/mcpe/protocol/DataPacket.php b/src/pocketmine/network/mcpe/protocol/DataPacket.php index 0482bb5a67..18c1e37156 100644 --- a/src/pocketmine/network/mcpe/protocol/DataPacket.php +++ b/src/pocketmine/network/mcpe/protocol/DataPacket.php @@ -115,13 +115,6 @@ abstract class DataPacket extends NetworkBinaryStream{ */ abstract public function handle(SessionHandler $handler) : bool; - public function clean(){ - $this->buffer = null; - $this->isEncoded = false; - $this->offset = 0; - return $this; - } - public function __debugInfo(){ $data = []; foreach($this as $k => $v){ diff --git a/src/pocketmine/network/mcpe/protocol/ExplodePacket.php b/src/pocketmine/network/mcpe/protocol/ExplodePacket.php index 3ac3cbbd7b..b85268e266 100644 --- a/src/pocketmine/network/mcpe/protocol/ExplodePacket.php +++ b/src/pocketmine/network/mcpe/protocol/ExplodePacket.php @@ -39,11 +39,6 @@ class ExplodePacket extends DataPacket{ /** @var Vector3[] */ public $records = []; - public function clean(){ - $this->records = []; - return parent::clean(); - } - protected function decodePayload() : void{ $this->position = $this->getVector3(); $this->radius = (float) ($this->getVarInt() / 32); diff --git a/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php b/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php index bce69bf628..d44a5ec80a 100644 --- a/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PlayerListPacket.php @@ -41,11 +41,6 @@ class PlayerListPacket extends DataPacket{ /** @var int */ public $type; - public function clean(){ - $this->entries = []; - return parent::clean(); - } - protected function decodePayload() : void{ $this->type = $this->getByte(); $count = $this->getUnsignedVarInt();