diff --git a/README.md b/README.md index c3b2ac69..ad92d05c 100644 --- a/README.md +++ b/README.md @@ -6,18 +6,18 @@
This is a fork of PocketMine-MP and Altay.

- This fork was created due to the inactivity of Altay and currently supports Minecraft: Bedrock Edition v1.21.120 + This fork was created due to the inactivity of Altay and currently supports Minecraft: Bedrock Edition v1.21.124

Discord - - Minecraft + + Minecraft - Protocol + Protocol Latest Release diff --git a/composer.lock b/composer.lock index 7c9f1b19..7527795c 100644 --- a/composer.lock +++ b/composer.lock @@ -2473,16 +2473,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.3", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", "shasum": "" }, "require": { @@ -2511,7 +2511,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + "source": "https://github.com/theseer/tokenizer/tree/1.3.1" }, "funding": [ { @@ -2519,7 +2519,7 @@ "type": "github" } ], - "time": "2024-03-03T12:36:25+00:00" + "time": "2025-11-17T20:03:58+00:00" } ], "aliases": [], diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 20201a62..638fc0d2 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2160,7 +2160,7 @@ protected function initEntity() : void{ public function handleRequestNetworkSettings(RequestNetworkSettingsPacket $packet) : bool{ $protocolVersion = $packet->protocolVersion; - if($protocolVersion !== ProtocolInfo::CURRENT_PROTOCOL){ + if($protocolVersion !== ProtocolInfo::CURRENT_PROTOCOL && $protocolVersion !== ProtocolInfo::PROTOCOL_1_21_120){ $this->sendPlayStatus($protocolVersion < ProtocolInfo::CURRENT_PROTOCOL ? PlayStatusPacket::LOGIN_FAILED_CLIENT : PlayStatusPacket::LOGIN_FAILED_SERVER, true); //This pocketmine disconnect message will only be seen by the console (PlayStatusPacket causes the messages to be shown for the client) $this->close("", $this->server->getLanguage()->translateString("pocketmine.disconnect.incompatibleProtocol", [$protocolVersion]), false); diff --git a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php index c11f0dd6..94e3bb06 100644 --- a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php +++ b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php @@ -37,11 +37,14 @@ interface ProtocolInfo{ */ /** Actual Minecraft: PE protocol version */ - public const CURRENT_PROTOCOL = 859; + public const CURRENT_PROTOCOL = 860; + /** Temporary support for Minecraft 1.21.120 */ + public const PROTOCOL_1_21_120 = 859; + /** Current Minecraft PE version reported by the server. This is usually the earliest currently supported version. */ public const MINECRAFT_VERSION = 'v' . self::MINECRAFT_VERSION_NETWORK; /** Version number sent to clients in ping responses. */ - public const MINECRAFT_VERSION_NETWORK = '1.21.120'; + public const MINECRAFT_VERSION_NETWORK = '1.21.124'; public const LOGIN_PACKET = 0x01; public const PLAY_STATUS_PACKET = 0x02;