Release 4.0.1

This commit is contained in:
Dylan K. Taylor 2021-12-09 00:48:42 +00:00
parent d909cd8a91
commit 036b90d247
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 25 additions and 1 deletions

View File

@ -1523,3 +1523,27 @@ Please note that this was not written with plugins in mind and its API may chang
### Misc
- Added support for emotes.
# 4.0.1
Released 9th December 2021.
## General
- Added a script `tools/ping-server.php`. This was sitting in my workspace for many years.
- `Minecraft network interface running` messages are no longer shown if RakLib was prevented from starting.
## Fixes
### Core
- Fixed server crash when `FallingBlock` has invalid block data that it can't understand.
- Fixed server crash when loading chunks containing tiles outside the world bounds.
- Fixed server crash when loading LevelDB chunks containing blockstates which are invalid or not yet supported - they are now treated as corrupted instead.
- Fixed `level.dat` becoming corrupted by world saves when the disk is full - now it will still fail to save, but it will leave the original data intact. Previously it would destroy the data and leave behind an empty file.
- Fixed configs becoming corrupted when saved when the disk is full - now they'll still fail to save, but the original file will remain intact.
### API
- Fixed mistakes in the 4.0.0 changelog:
- Removal of `Player->getLowerCaseName()` is now mentioned.
- `CreativeInventory::reset()` is the successor to `Item::initCreativeItems()`, not `CreativeInventory::init()`.
- Note that the changelog when viewing from the 4.0.0 GitHub release will remain the same; only the changelog in the current repo will be different.
- `Config->save()` will no longer write empty data to the file when using JSON and the data fails to encode - an exception will be thrown instead.
- `StringToItemParser` now returns the correct items for `bamboo`, `shulker_box`, `stone_slab`, `stone_stairs` and `tall_grass`.
- `StringToItemParser` now recognizes `slime` and `slime_block` (these were previously missing).

View File

@ -32,7 +32,7 @@ use function str_repeat;
final class VersionInfo{
public const NAME = "PocketMine-MP";
public const BASE_VERSION = "4.0.1";
public const IS_DEVELOPMENT_BUILD = true;
public const IS_DEVELOPMENT_BUILD = false;
public const BUILD_CHANNEL = "stable";
private function __construct(){