Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/bedrock-1.21.40' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Oct 24, 2024
2 parents 1f23bc1 + 9376b53 commit 4c7d2ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/data/bedrock/BedrockDataFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private function __construct(){
public const BLOCK_ID_TO_ITEM_ID_MAP_1_21_20_JSON = BEDROCK_DATA_PATH . '/block_id_to_item_id_map-1.21.20.json';
public const BLOCK_ID_TO_ITEM_ID_MAP_1_21_30_JSON = BEDROCK_DATA_PATH . '/block_id_to_item_id_map-1.21.30.json';
public const BLOCK_ID_TO_ITEM_ID_MAP_JSON = BEDROCK_DATA_PATH . '/block_id_to_item_id_map.json';
public const BLOCK_PROPERTIES_TABLE_JSON = BEDROCK_DATA_PATH . '/block_properties_table.json';
public const BLOCK_STATE_META_MAP_1_20_0_JSON = BEDROCK_DATA_PATH . '/block_state_meta_map-1.20.0.json';
public const BLOCK_STATE_META_MAP_1_20_10_JSON = BEDROCK_DATA_PATH . '/block_state_meta_map-1.20.10.json';
public const BLOCK_STATE_META_MAP_1_20_30_JSON = BEDROCK_DATA_PATH . '/block_state_meta_map-1.20.30.json';
Expand Down
4 changes: 2 additions & 2 deletions src/network/mcpe/handler/PreSpawnPacketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
use pocketmine\network\mcpe\protocol\types\LevelSettings;
use pocketmine\network\mcpe\protocol\types\NetworkPermissions;
use pocketmine\network\mcpe\protocol\types\PlayerMovementSettings;
use pocketmine\network\mcpe\protocol\types\PlayerMovementType;
use pocketmine\network\mcpe\protocol\types\ServerAuthMovementMode;
use pocketmine\network\mcpe\protocol\types\SpawnSettings;
use pocketmine\player\Player;
use pocketmine\Server;
Expand Down Expand Up @@ -99,7 +99,7 @@ public function setUp() : void{
$this->server->getMotd(),
"",
false,
new PlayerMovementSettings(PlayerMovementType::SERVER_AUTHORITATIVE_V1, 0, false),
new PlayerMovementSettings(ServerAuthMovementMode::SERVER_AUTHORITATIVE_V2, 0, false),

Check failure on line 102 in src/network/mcpe/handler/PreSpawnPacketHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 / PHPStan analysis

Parameter #1 $movementType of class pocketmine\network\mcpe\protocol\types\PlayerMovementSettings constructor expects int, pocketmine\network\mcpe\protocol\types\ServerAuthMovementMode::SERVER_AUTHORITATIVE_V2 given.

Check failure on line 102 in src/network/mcpe/handler/PreSpawnPacketHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 / PHPStan analysis

Parameter #1 $movementType of class pocketmine\network\mcpe\protocol\types\PlayerMovementSettings constructor expects int, pocketmine\network\mcpe\protocol\types\ServerAuthMovementMode::SERVER_AUTHORITATIVE_V2 given.

Check failure on line 102 in src/network/mcpe/handler/PreSpawnPacketHandler.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 / PHPStan analysis

Parameter #1 $movementType of class pocketmine\network\mcpe\protocol\types\PlayerMovementSettings constructor expects int, pocketmine\network\mcpe\protocol\types\ServerAuthMovementMode::SERVER_AUTHORITATIVE_V2 given.
0,
0,
"",
Expand Down

0 comments on commit 4c7d2ba

Please sign in to comment.