From 428bd5ae91b23d8d542a0217dda6b2bd1c3157d5 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 29 Oct 2021 22:35:15 +0100 Subject: [PATCH] Release 4.0.0-BETA8 --- changelogs/4.0.md | 31 ++++++++++++++++++++++++++++++- src/VersionInfo.php | 2 +- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/changelogs/4.0.md b/changelogs/4.0.md index d9a268bef..dd27e019d 100644 --- a/changelogs/4.0.md +++ b/changelogs/4.0.md @@ -1462,7 +1462,7 @@ Released 19th October 2021. - Picking up some items from a dropped stack of items is now supported. This fixes various bugs with being unable to pick up items with an almost-full inventory. # 4.0.0-BETA7 -Released 28 October 2021. +Released 28th October 2021. ## General - Phar plugins are now able to depend on folder plugins loaded by DevTools. @@ -1496,3 +1496,32 @@ Released 28 October 2021. - `PluginManager->loadPlugins()` now accepts paths to files as well as directories, in which case it will load only the plugin found in the target file. - The following API methods have been removed: - `PluginManager->loadPlugin()`: use `PluginManager->loadPlugins()` instead + +# 4.0.0-BETA8 +Released 29th October 2021. + +## General +- Chunk packet caches are now cleared by the memory manager on low memory. +- `Entity->spawnTo()` now has an additional sanity check for matching worlds (might expose a few new errors in plugins). +- [`pocketmine/math` 0.4.0](https://github.com/pmmp/Math/releases/tag/0.4.0) is now used. Please see its release notes for changes. + +## Fixes +- Zlib raw check for LevelDB is now done directly on startup, avoiding crashes when later trying to load worlds. +- Fixed tiles and entities getting deleted from adjacent chunks during chunk population. +- Fixed players being unable to open their inventories more than once. +- Fixed entities not getting updated when a nearby chunk is replaced (e.g. dropped items would float in midair if the ground was lower than before) + +## API +### World +- `World::setChunk()` has the following changes: + - `$deleteEntitiesAndTiles` parameter has been removed. + - Entities are no longer deleted on chunk replacement. + - Tiles are no longer deleted on chunk replacement, unless one of the following conditions is met: + - the target block in the new chunk doesn't expect a tile + - the target block in the new chunk expects a different type of tile (responsibility of the plugin developer to create the new tile) + - there's already a tile in the target chunk which conflicts with the old one +- `Location::__construct()` has the following changes: + - `world` parameter is now 4th instead of last. + - All parameters are now mandatory. +- Reverted addition of chunk modification counters in previous beta. +- `Chunk::DIRTY_FLAG_TERRAIN` has been renamed to `Chunk::DIRTY_FLAG_BLOCKS`. diff --git a/src/VersionInfo.php b/src/VersionInfo.php index c56b36a60..282461242 100644 --- a/src/VersionInfo.php +++ b/src/VersionInfo.php @@ -30,7 +30,7 @@ use function str_repeat; final class VersionInfo{ public const NAME = "PocketMine-MP"; public const BASE_VERSION = "4.0.0-BETA8"; - public const IS_DEVELOPMENT_BUILD = true; + public const IS_DEVELOPMENT_BUILD = false; public const BUILD_NUMBER = 0; public const BUILD_CHANNEL = "beta";