From b1458db47bb51e92c8ea6bf4c8b18a791d095ef0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 14 Jan 2020 17:16:17 +0000 Subject: [PATCH 1/2] Revert "CraftingDataPacket: fixed trying to return void result of parent function" This reverts commit e12ecaf62960dfc71871520e52787589447346ee. --- src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php b/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php index 3e5c483cf..ae45fb72b 100644 --- a/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php +++ b/src/pocketmine/network/mcpe/protocol/CraftingDataPacket.php @@ -68,7 +68,7 @@ class CraftingDataPacket extends DataPacket{ public function clean(){ $this->entries = []; $this->decodedEntries = []; - parent::clean(); + return parent::clean(); } protected function decodePayload(){ From f6d96c58276bffe20d2444eeb5f4a638b0d78c02 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 14 Jan 2020 17:28:53 +0000 Subject: [PATCH 2/2] DataPacket: clean() returns $this, not void --- src/pocketmine/network/mcpe/protocol/DataPacket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/network/mcpe/protocol/DataPacket.php b/src/pocketmine/network/mcpe/protocol/DataPacket.php index 40dbab69a..fef902791 100644 --- a/src/pocketmine/network/mcpe/protocol/DataPacket.php +++ b/src/pocketmine/network/mcpe/protocol/DataPacket.php @@ -149,7 +149,7 @@ abstract class DataPacket extends NetworkBinaryStream{ abstract public function handle(NetworkSession $session) : bool; /** - * @return void + * @return $this */ public function clean(){ $this->buffer = "";