mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Merge branch 'stable'
This commit is contained in:
commit
3103579ba6
@ -138,6 +138,9 @@ class StartGamePacket extends DataPacket implements ClientboundPacket{
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
public $multiplayerCorrelationId = ""; //TODO: this should be filled with a UUID of some sort
|
public $multiplayerCorrelationId = ""; //TODO: this should be filled with a UUID of some sort
|
||||||
|
|
||||||
|
/** @var bool */
|
||||||
|
public $onlySpawnV1Villagers = false;
|
||||||
|
|
||||||
/** @var array|null each entry must have a "name" (string) and "data" (int16) element */
|
/** @var array|null each entry must have a "name" (string) and "data" (int16) element */
|
||||||
public $runtimeIdTable = null;
|
public $runtimeIdTable = null;
|
||||||
|
|
||||||
@ -202,6 +205,7 @@ class StartGamePacket extends DataPacket implements ClientboundPacket{
|
|||||||
$this->runtimeIdTable = $table;
|
$this->runtimeIdTable = $table;
|
||||||
|
|
||||||
$this->multiplayerCorrelationId = $this->getString();
|
$this->multiplayerCorrelationId = $this->getString();
|
||||||
|
$this->onlySpawnV1Villagers = $this->getBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload() : void{
|
protected function encodePayload() : void{
|
||||||
@ -265,6 +269,7 @@ class StartGamePacket extends DataPacket implements ClientboundPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->putString($this->multiplayerCorrelationId);
|
$this->putString($this->multiplayerCorrelationId);
|
||||||
|
$this->putBool($this->onlySpawnV1Villagers);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function serializeBlockTable(array $table) : string{
|
private static function serializeBlockTable(array $table) : string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user