Skip to content

Commit cabdf4f

Browse files
committed
1.21.90 Compatibility
1 parent 21ccca1 commit cabdf4f

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

src/data/bedrock/BedrockDataFiles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,6 @@ private function __construct(){
121121
public const REQUIRED_ITEM_LIST_1_21_50_JSON = BEDROCK_DATA_PATH . '/required_item_list-1.21.50.json';
122122
public const REQUIRED_ITEM_LIST_1_21_60_JSON = BEDROCK_DATA_PATH . '/required_item_list-1.21.60.json';
123123
public const REQUIRED_ITEM_LIST_1_21_70_JSON = BEDROCK_DATA_PATH . '/required_item_list-1.21.70.json';
124+
public const REQUIRED_ITEM_LIST_1_21_80_JSON = BEDROCK_DATA_PATH . '/required_item_list-1.21.80.json';
124125
public const REQUIRED_ITEM_LIST_JSON = BEDROCK_DATA_PATH . '/required_item_list.json';
125126
}

src/data/bedrock/ItemTagToIdMap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ final class ItemTagToIdMap{
4646

4747
private const PATHS = [
4848
ProtocolInfo::CURRENT_PROTOCOL => "",
49+
ProtocolInfo::PROTOCOL_1_21_80 => "",
4950
ProtocolInfo::PROTOCOL_1_21_70 => "",
5051
ProtocolInfo::PROTOCOL_1_21_60 => "",
5152
ProtocolInfo::PROTOCOL_1_21_50 => "",

src/data/bedrock/WorldDataVersions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ final class WorldDataVersions{
5454
* This may be lower than the current protocol version if PocketMine-MP does not yet support features of the newer
5555
* version. This allows the protocol to be updated independently of world format support.
5656
*/
57-
public const NETWORK = 800;
57+
public const NETWORK = 818;
5858

5959
public const LAST_OPENED_IN = [
6060
1, //major
6161
21, //minor
62-
80, //patch
62+
90, //patch
6363
3, //revision
6464
0 //is beta
6565
];

src/network/mcpe/convert/BlockTranslator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ final class BlockTranslator{
4646
self::CANONICAL_BLOCK_STATES_PATH => '',
4747
self::BLOCK_STATE_META_MAP_PATH => '',
4848
],
49+
ProtocolInfo::PROTOCOL_1_21_80 => [
50+
self::CANONICAL_BLOCK_STATES_PATH => '',
51+
self::BLOCK_STATE_META_MAP_PATH => '',
52+
],
4953
ProtocolInfo::PROTOCOL_1_21_70 => [
5054
self::CANONICAL_BLOCK_STATES_PATH => '-1.21.70',
5155
self::BLOCK_STATE_META_MAP_PATH => '',

src/network/mcpe/convert/ItemTranslator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public function fromNetworkId(int $networkId, int $networkMeta, int $networkBloc
137137

138138
public static function getItemSchemaId(int $protocolId) : int{
139139
return match($protocolId){
140+
ProtocolInfo::PROTOCOL_1_21_90,
140141
ProtocolInfo::PROTOCOL_1_21_80,
141142
ProtocolInfo::PROTOCOL_1_21_70,
142143
ProtocolInfo::PROTOCOL_1_21_60,

src/network/mcpe/convert/ItemTypeDictionaryFromDataHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ final class ItemTypeDictionaryFromDataHelper{
4646

4747
private const PATHS = [
4848
ProtocolInfo::CURRENT_PROTOCOL => "",
49+
ProtocolInfo::PROTOCOL_1_21_80 => "-1.21.80",
4950
ProtocolInfo::PROTOCOL_1_21_70 => "-1.21.70",
5051
ProtocolInfo::PROTOCOL_1_21_60 => "-1.21.60",
5152
ProtocolInfo::PROTOCOL_1_21_50 => "-1.21.50",

0 commit comments

Comments
 (0)