From 54ae4d0ea2429bfb020aa1fae444c5ac9e3dcafb Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 26 Apr 2023 23:15:34 +0100 Subject: [PATCH] Release 4.20.0 --- changelogs/4.20.md | 36 ++++++++++++++++++++++++++++++++++++ src/VersionInfo.php | 4 ++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 changelogs/4.20.md diff --git a/changelogs/4.20.md b/changelogs/4.20.md new file mode 100644 index 000000000..357cdaced --- /dev/null +++ b/changelogs/4.20.md @@ -0,0 +1,36 @@ +**For Minecraft: Bedrock Edition 1.19.80** + +### Note about API versions +Plugins which don't touch the `pocketmine\network\mcpe` namespace are compatible with any previous 4.x.y version will also run on these releases and do not need API bumps. +Plugin developers should **only** update their required API to this version if you need the changes in this build. + +**WARNING: If your plugin uses the `pocketmine\network\mcpe` namespace, you're not shielded by API change constraints.** +Consider using the `mcpe-protocol` directive in `plugin.yml` as a constraint if you're using packets directly. + +### Interim releases +If you're upgrading from 4.17.x directly to 4.20.x, please also read the following changelogs, as the interim releases contain important changes: + +- [4.18.0](https://github.com/pmmp/PocketMine-MP/blob/4.20.0/changelogs/4.18.md#4180) - major performance improvements, internal network changes, minor API additions +- [4.19.0](https://github.com/pmmp/PocketMine-MP/blob/4.20.0/changelogs/4.19.md#4190) - minor performance improvements, improved timings system, minor API additions + +# 4.20.0 +Released 26th April 2023. + +## General +- Added support for Minecraft: Bedrock Edition 1.19.80. +- Removed support for older versions. + +## Fixes +- Fixed packet processing error when attempting to use a stonecutter. +- Fixed armor slots containing ghost items when cancelling right-click to equip armor. +- Fixed crash in `HandlerList->getListenersByPriority()` when no listeners are registered at the given priority. + +## API +### `pocketmine\block` +- The following API methods have been added: + - `public BaseSign->getEditorEntityRuntimeId() : int` - returns the entity runtime ID of the player currently editing this sign, or `null` if none + - `public BaseSign->setEditorEntityRuntimeId(?int $editorEntityRuntimeId) : $this` - sets the entity runtime ID of the player currently editing this sign + +### `pocketmine\player` +- The following API methods have been added: + - `public Player->openSignEditor(Vector3 $position) : void` - opens the client-side sign editor GUI for the given position diff --git a/src/VersionInfo.php b/src/VersionInfo.php index 75b43e6f2..947b4d2e7 100644 --- a/src/VersionInfo.php +++ b/src/VersionInfo.php @@ -31,8 +31,8 @@ use function str_repeat; final class VersionInfo{ public const NAME = "PocketMine-MP"; - public const BASE_VERSION = "4.19.4"; - public const IS_DEVELOPMENT_BUILD = true; + public const BASE_VERSION = "4.20.0"; + public const IS_DEVELOPMENT_BUILD = false; public const BUILD_CHANNEL = "stable"; private function __construct(){