Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
protocol 394
Browse files Browse the repository at this point in the history
  • Loading branch information
IceCruelStuff committed Feb 29, 2020
1 parent 6e87156 commit f43f38b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pocketmine/network/protocol/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
interface Info{

const CURRENT_PROTOCOL = 120;
const ACCEPTED_PROTOCOLS = [134, 135, 136, 137, 140, 141, 150, 160, 200, 201, 220, 221, 222, 224, 223, 240, 250, 260, 261, 270, 271, 273, 274, 280, 281, 282, 290, 291, 310, 311, 312, 313, 330, 331, 332, 342, 340, 350, 351, 352, 353, 354, 360, 361, 370, 371, 385, 386, 387, 388, 389, 390, 392, 393];
const ACCEPTED_PROTOCOLS = [134, 135, 136, 137, 140, 141, 150, 160, 200, 201, 220, 221, 222, 224, 223, 240, 250, 260, 261, 270, 271, 273, 274, 280, 281, 282, 290, 291, 310, 311, 312, 313, 330, 331, 332, 342, 340, 350, 351, 352, 353, 354, 360, 361, 370, 371, 385, 386, 387, 388, 389, 390, 392, 393, 394];

const PROTOCOL_134 = 134; // 1.2.0.20, 1.2.0.22
const PROTOCOL_135 = 135; // 1.2.0.24, 1.2.0.25
Expand Down Expand Up @@ -84,6 +84,7 @@ interface Info{
const PROTOCOL_390 = 390; // 1.14.0.1
const PROTOCOL_392 = 392; // 1.15.0.51
const PROTOCOL_393 = 393; // 1.15.0.53
const PROTOCOL_394 = 394; // 1.15.0.54

/** OUTDATED (supporting will be removed with next release, may didn't work properly)*/
const PROTOCOL_120 = 120; // 1.2.0.xx (beta)
Expand Down
1 change: 1 addition & 0 deletions src/pocketmine/network/protocol/PEPacket.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function reset($playerProtocol = 0) {

public final static function convertProtocol($protocol) {
switch ($protocol) {
case Info::PROTOCOL_394:
case Info::PROTOCOL_393:
return Info::PROTOCOL_393;
case Info::PROTOCOL_392:
Expand Down

0 comments on commit f43f38b

Please sign in to comment.