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