From 5bcbef90ea88d4174afc17bd43250c3865103516 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 11 Nov 2019 15:32:48 -0500 Subject: [PATCH] Added variables for getSkin's animation for easier readability --- src/pocketmine/network/mcpe/NetworkBinaryStream.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/network/mcpe/NetworkBinaryStream.php b/src/pocketmine/network/mcpe/NetworkBinaryStream.php index 03b36a544..4c5bb7b8d 100644 --- a/src/pocketmine/network/mcpe/NetworkBinaryStream.php +++ b/src/pocketmine/network/mcpe/NetworkBinaryStream.php @@ -84,7 +84,11 @@ class NetworkBinaryStream extends BinaryStream{ $animationCount = $this->getLInt(); $animations = []; for($i = 0; $i < $animationCount; ++$i){ - $animations[] = new SkinAnimation($this->getSkinImage(), $this->getLInt(), $this->getLFloat()); + $animations[] = new SkinAnimation( + $skinImage = $this->getSkinImage(), + $animationType = $this->getLInt(), + $animationFrames = $this->getLFloat() + ); } $capeData = $this->getSkinImage(); $geometryData = $this->getString();