Skip to content

Commit 598288d

Browse files
committed
1.19.60
1 parent 212c996 commit 598288d

File tree

6 files changed

+14
-2
lines changed

6 files changed

+14
-2
lines changed

src/pocketmine/network/Network.php

+3
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ public function getPacket($id, $playerProtocol){
256256
case Info::PROTOCOL_554:
257257
case Info::PROTOCOL_557:
258258
case Info::PROTOCOL_560:
259+
case Info::PROTOCOL_567:
259260
$class = $this->packetPool331[$id];
260261
break;
261262
default:
@@ -269,6 +270,8 @@ public function getPacket($id, $playerProtocol){
269270

270271
public static function getChunkPacketProtocol($playerProtocol){
271272
switch ($playerProtocol) {
273+
case Info::PROTOCOL_567:
274+
return Info::PROTOCOL_567;
272275
case Info::PROTOCOL_560:
273276
return Info::PROTOCOL_560;
274277
case Info::PROTOCOL_557:

src/pocketmine/network/protocol/DataPacket.php

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public static function initPackets() {
103103
self::$packetsIds[Info::PROTOCOL_554] = $oClass->getConstants();
104104
self::$packetsIds[Info::PROTOCOL_557] = $oClass->getConstants();
105105
self::$packetsIds[Info::PROTOCOL_560] = $oClass->getConstants();
106+
self::$packetsIds[Info::PROTOCOL_567] = $oClass->getConstants();
106107
}
107108

108109
}

src/pocketmine/network/protocol/Info.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
interface Info{
2929

30-
const CURRENT_PROTOCOL = self::PROTOCOL_560;
31-
const ACCEPTED_PROTOCOLS = [419, 422, 423, 428, 431, 440, 448, 465, 471, 475, 486, 503, 526, 527, 534, 544, 545, 553, 554, 557, 560];
30+
const CURRENT_PROTOCOL = self::PROTOCOL_567;
31+
const ACCEPTED_PROTOCOLS = [419, 422, 423, 428, 431, 440, 448, 465, 471, 475, 486, 503, 526, 527, 534, 544, 545, 553, 554, 557, 560, 567];
3232

3333
const PROTOCOL_419 = 419; // 1.16.100.59
3434
const PROTOCOL_422 = 422; // 1.16.200.56
@@ -51,6 +51,7 @@ interface Info{
5151
const PROTOCOL_554 = 554;
5252
const PROTOCOL_557 = 557; // 1.19.40
5353
const PROTOCOL_560 = 560; // 1.19.50.23
54+
const PROTOCOL_567 = 567; // 1.19.60.26
5455

5556
/**
5657
* Minecraft: PE packets

src/pocketmine/network/protocol/PEPacket.php

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function reset($playerProtocol = 0) {
4343

4444
public final static function convertProtocol($protocol) {
4545
switch ($protocol) {
46+
case Info::PROTOCOL_567:
47+
return Info::PROTOCOL_567;
4648
case Info::PROTOCOL_560:
4749
return Info::PROTOCOL_560;
4850
case Info::PROTOCOL_557:

src/pocketmine/network/protocol/StartGamePacket.php

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public function encode($playerProtocol){
163163
$this->putByte(0); // disable persona skins
164164
$this->putByte(0); // disable custom skins
165165
}
166+
if($playerProtocol >= Info::PROTOCOL_567){
167+
$this->putByte(0); // mute emote announcements
168+
}
166169
$this->putString(''); // Vanila version
167170

168171

src/pocketmine/utils/MetadataConvertor.php

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public static function updateMeta($meta, $protocol) {
3838

3939
private static function updateMetaIds($meta, $protocol) {
4040
switch ($protocol) {
41+
case Info::PROTOCOL_567:
4142
case Info::PROTOCOL_560:
4243
case Info::PROTOCOL_557:
4344
case Info::PROTOCOL_554:
@@ -80,6 +81,7 @@ private static function updateEntityFlags($meta, $protocol) {
8081
return $meta;
8182
}
8283
switch ($protocol) {
84+
case Info::PROTOCOL_567:
8385
case Info::PROTOCOL_560:
8486
$newflags = 0;
8587
$changedFlagIds = self::$entityFlags560;

0 commit comments

Comments
 (0)