mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Fixed changing skins crashing the server
This commit is contained in:
parent
5ebe9859e9
commit
3b7ded0ba3
@ -66,8 +66,9 @@ class PlayerListPacket extends DataPacket{
|
||||
$skinId = $this->getString();
|
||||
$skinResourcePatch = $this->getString();
|
||||
$skinData = $this->getImage();
|
||||
$animationCount = $this->getLInt();
|
||||
$animations = [];
|
||||
for($i = 0; $i < $this->getLInt(); ++$i){
|
||||
for($i = 0; $i < $animationCount; ++$i){
|
||||
$animations[] = new SkinAnimation($this->getImage(), $this->getLInt(), $this->getLFloat());
|
||||
}
|
||||
$capeData = $this->getImage();
|
||||
|
@ -45,8 +45,9 @@ class PlayerSkinPacket extends DataPacket{
|
||||
$skinId = $this->getString();
|
||||
$skinResourcePatch = $this->getString();
|
||||
$skinData = $this->getImage();
|
||||
$animationCount = $this->getLInt();
|
||||
$animations = [];
|
||||
for($i = 0; $i < $this->getLInt(); ++$i){
|
||||
for($i = 0; $i < $animationCount; ++$i){
|
||||
$animations[] = new SkinAnimation($this->getImage(), $this->getLInt(), $this->getLFloat());
|
||||
}
|
||||
$capeData = $this->getImage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user