From 6a94c8183cd05a009b160db298fe90d5daa319d8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 28 Feb 2018 18:10:47 +0000 Subject: [PATCH] NetworkBinaryStream: Add clarification on array structure for gamerules we need objects for this really --- src/pocketmine/network/mcpe/NetworkBinaryStream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/mcpe/NetworkBinaryStream.php b/src/pocketmine/network/mcpe/NetworkBinaryStream.php index fa7ce5c4d..ff18b2f99 100644 --- a/src/pocketmine/network/mcpe/NetworkBinaryStream.php +++ b/src/pocketmine/network/mcpe/NetworkBinaryStream.php @@ -415,7 +415,7 @@ class NetworkBinaryStream extends BinaryStream{ * Reads gamerules * TODO: implement this properly * - * @return array + * @return array, members are in the structure [name => [type, value]] */ public function getGameRules() : array{ $count = $this->getUnsignedVarInt(); @@ -443,7 +443,7 @@ class NetworkBinaryStream extends BinaryStream{ } /** - * Writes a gamerule array + * Writes a gamerule array, members should be in the structure [name => [type, value]] * TODO: implement this properly * * @param array $rules