CommandParameter: change byte1 field to "flags" (#3115)

This commit is contained in:
Frago9876543210
2019-09-18 13:10:42 +03:00
committed by Dylan T
parent 1866de269b
commit ec0558597b
2 changed files with 4 additions and 4 deletions

View File

@ -239,7 +239,7 @@ class AvailableCommandsPacket extends DataPacket implements ClientboundPacket{
$parameter->paramName = $this->getString();
$parameter->paramType = $this->getLInt();
$parameter->isOptional = $this->getBool();
$parameter->byte1 = $this->getByte();
$parameter->flags = $this->getByte();
if($parameter->paramType & self::ARG_FLAG_ENUM){
$index = ($parameter->paramType & 0xffff);
@ -302,7 +302,7 @@ class AvailableCommandsPacket extends DataPacket implements ClientboundPacket{
$this->putLInt($type);
$this->putBool($parameter->isOptional);
$this->putByte($parameter->byte1);
$this->putByte($parameter->flags);
}
}
}