From 74c09dc20210d8436ac4ed264ea772f185594ef0 Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 21 Nov 2019 14:49:01 -0500 Subject: [PATCH] Remove inline assignment --- src/pocketmine/network/mcpe/protocol/StartGamePacket.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php index a251112aa4..e4acbc61f8 100644 --- a/src/pocketmine/network/mcpe/protocol/StartGamePacket.php +++ b/src/pocketmine/network/mcpe/protocol/StartGamePacket.php @@ -315,7 +315,8 @@ class StartGamePacket extends DataPacket{ $state->setShort("id", $v["legacy_id"]); $states->push($state); } - ($stream = new NetworkLittleEndianNBTStream())->writeTag($states); + $stream = new NetworkLittleEndianNBTStream(); + $stream->writeTag($states); return $stream->buffer; }