mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Remove unnecessary count()
This commit is contained in:
parent
41f363d0c1
commit
784ecef805
@ -102,13 +102,10 @@ class AvailableCommandsPacket extends DataPacket{
|
|||||||
public $commandData = [];
|
public $commandData = [];
|
||||||
|
|
||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
for($i = 0, $count = $this->getUnsignedVarInt(); $i < $count; ++$i){
|
for($i = 0, $this->enumValuesCount = $this->getUnsignedVarInt(); $i < $this->enumValuesCount; ++$i){
|
||||||
$this->enumValues[] = $this->getString();
|
$this->enumValues[] = $this->getString();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->enumValuesCount = count($this->enumValues);
|
|
||||||
|
|
||||||
|
|
||||||
for($i = 0, $count = $this->getUnsignedVarInt(); $i < $count; ++$i){
|
for($i = 0, $count = $this->getUnsignedVarInt(); $i < $count; ++$i){
|
||||||
$this->postfixes[] = $this->getString();
|
$this->postfixes[] = $this->getString();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user