Merge remote-tracking branch 'origin/minor-next' into major-next

This commit is contained in:
Dylan K. Taylor 2025-06-25 01:07:16 +01:00
commit afcd6b4e12
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
5 changed files with 19 additions and 9 deletions

View File

@ -62,3 +62,12 @@ Consider using the `mcpe-protocol` directive in `plugin.yml` as a constraint if
- Various internal classes in the `pocketmine\world\generator` namespace have been moved to the `generator\executor` namespace. - Various internal classes in the `pocketmine\world\generator` namespace have been moved to the `generator\executor` namespace.
- Removed `World->registerGenerator()` and `World->unregisterGenerator()`. - Removed `World->registerGenerator()` and `World->unregisterGenerator()`.
- Removed redundant calls to `curl_close()` (obsolete since PHP 8.0). - Removed redundant calls to `curl_close()` (obsolete since PHP 8.0).
# 5.30.1
Released 23rd June 2025.
## Fixes
- Fixed accidental break of backwards compatibility in `EntityExplodeEvent` introduced in the previous release.
- Fixed placement of player holding block when exploding respawn anchor.
- Updated BedrockProtocol to fix incorrect encoding of `ServerScriptDebugDrawerPacket`.
- Disabled client-side locator bar, allowing plugins to write their own implementations.

12
composer.lock generated
View File

@ -256,16 +256,16 @@
}, },
{ {
"name": "pocketmine/bedrock-protocol", "name": "pocketmine/bedrock-protocol",
"version": "39.0.0+bedrock-1.21.90", "version": "39.0.1+bedrock-1.21.90",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/pmmp/BedrockProtocol.git", "url": "https://github.com/pmmp/BedrockProtocol.git",
"reference": "2b088183d12fc003523400867ee398e3893899ed" "reference": "fd231bad0d94024ff50169dc06e8c4fca5aa2eb3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/pmmp/BedrockProtocol/zipball/2b088183d12fc003523400867ee398e3893899ed", "url": "https://api.github.com/repos/pmmp/BedrockProtocol/zipball/fd231bad0d94024ff50169dc06e8c4fca5aa2eb3",
"reference": "2b088183d12fc003523400867ee398e3893899ed", "reference": "fd231bad0d94024ff50169dc06e8c4fca5aa2eb3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -296,9 +296,9 @@
"description": "An implementation of the Minecraft: Bedrock Edition protocol in PHP", "description": "An implementation of the Minecraft: Bedrock Edition protocol in PHP",
"support": { "support": {
"issues": "https://github.com/pmmp/BedrockProtocol/issues", "issues": "https://github.com/pmmp/BedrockProtocol/issues",
"source": "https://github.com/pmmp/BedrockProtocol/tree/39.0.0+bedrock-1.21.90" "source": "https://github.com/pmmp/BedrockProtocol/tree/39.0.1+bedrock-1.21.90"
}, },
"time": "2025-06-17T23:46:38+00:00" "time": "2025-06-23T13:22:50+00:00"
}, },
{ {
"name": "pocketmine/binaryutils", "name": "pocketmine/binaryutils",

View File

@ -31,7 +31,7 @@ use function str_repeat;
final class VersionInfo{ final class VersionInfo{
public const NAME = "PocketMine-MP"; public const NAME = "PocketMine-MP";
public const BASE_VERSION = "5.30.1"; public const BASE_VERSION = "5.30.2";
public const IS_DEVELOPMENT_BUILD = true; public const IS_DEVELOPMENT_BUILD = true;
public const BUILD_CHANNEL = "stable"; public const BUILD_CHANNEL = "stable";

View File

@ -85,7 +85,7 @@ final class RespawnAnchor extends Opaque{
switch($ev->getAction()){ switch($ev->getAction()){
case PlayerRespawnAnchorUseEvent::ACTION_EXPLODE: case PlayerRespawnAnchorUseEvent::ACTION_EXPLODE:
$this->explode($player); $this->explode($player);
return false; return true;
case PlayerRespawnAnchorUseEvent::ACTION_SET_SPAWN: case PlayerRespawnAnchorUseEvent::ACTION_SET_SPAWN:
if($player->getSpawn() !== null && $player->getSpawn()->equals($this->position)){ if($player->getSpawn() !== null && $player->getSpawn()->equals($this->position)){

View File

@ -81,7 +81,8 @@ class PreSpawnPacketHandler extends PacketHandler{
$levelSettings->lightningLevel = 0; $levelSettings->lightningLevel = 0;
$levelSettings->commandsEnabled = true; $levelSettings->commandsEnabled = true;
$levelSettings->gameRules = [ $levelSettings->gameRules = [
"naturalregeneration" => new BoolGameRule(false, false) //Hack for client side regeneration "naturalregeneration" => new BoolGameRule(false, false), //Hack for client side regeneration
"locatorbar" => new BoolGameRule(false, false) //Disable client-side tracking of nearby players
]; ];
$levelSettings->experiments = new Experiments([], false); $levelSettings->experiments = new Experiments([], false);