Added variables for getSkin's animation for easier readability

This commit is contained in:
Stephen 2019-11-11 15:32:48 -05:00
parent 1c67f094e3
commit 5bcbef90ea

View File

@ -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();