mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
fixed some mistakes in the protocol
This commit is contained in:
parent
fe8102c062
commit
d384df1f2e
@ -87,8 +87,8 @@ class ClientboundMapItemDataPacket extends DataPacket{
|
||||
}
|
||||
|
||||
for($i = 0, $count = $this->getUnsignedVarInt(); $i < $count; ++$i){
|
||||
$this->decorations[$i]["rot"] = $this->getByte();
|
||||
$this->decorations[$i]["img"] = $this->getByte();
|
||||
$this->decorations[$i]["rot"] = $this->getByte();
|
||||
$this->decorations[$i]["xOffset"] = $this->getByte();
|
||||
$this->decorations[$i]["yOffset"] = $this->getByte();
|
||||
$this->decorations[$i]["label"] = $this->getString();
|
||||
@ -150,8 +150,8 @@ class ClientboundMapItemDataPacket extends DataPacket{
|
||||
|
||||
$this->putUnsignedVarInt($decorationCount);
|
||||
foreach($this->decorations as $decoration){
|
||||
$this->putByte($decoration["rot"]);
|
||||
$this->putByte($decoration["img"]);
|
||||
$this->putByte($decoration["rot"]);
|
||||
$this->putByte($decoration["xOffset"]);
|
||||
$this->putByte($decoration["yOffset"]);
|
||||
$this->putString($decoration["label"]);
|
||||
|
@ -153,7 +153,7 @@ class StartGamePacket extends DataPacket{
|
||||
$this->xboxLiveBroadcastMode = $this->getVarInt();
|
||||
$this->serverChunkTickRadius = $this->getLInt();
|
||||
$this->hasPlatformBroadcast = $this->getBool();
|
||||
$this->platformBroadcastMode = $this->getUnsignedVarInt();
|
||||
$this->platformBroadcastMode = $this->getVarInt();
|
||||
$this->xboxLiveBroadcastIntent = $this->getBool();
|
||||
|
||||
$this->levelId = $this->getString();
|
||||
@ -200,7 +200,7 @@ class StartGamePacket extends DataPacket{
|
||||
$this->putVarInt($this->xboxLiveBroadcastMode);
|
||||
$this->putLInt($this->serverChunkTickRadius);
|
||||
$this->putBool($this->hasPlatformBroadcast);
|
||||
$this->putUnsignedVarInt($this->platformBroadcastMode);
|
||||
$this->putVarInt($this->platformBroadcastMode);
|
||||
$this->putBool($this->xboxLiveBroadcastIntent);
|
||||
|
||||
$this->putString($this->levelId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user