Remove unnecessary count()

This commit is contained in:
Dylan K. Taylor 2017-11-08 19:44:10 +00:00
parent 41f363d0c1
commit 784ecef805

View File

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