From 036b90d2472ab317305d3724f69dc498d424e07c Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 9 Dec 2021 00:48:42 +0000 Subject: [PATCH] Release 4.0.1 --- changelogs/4.0.md | 24 ++++++++++++++++++++++++ src/VersionInfo.php | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/changelogs/4.0.md b/changelogs/4.0.md index 6a97299c3..4fc8c4af4 100644 --- a/changelogs/4.0.md +++ b/changelogs/4.0.md @@ -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). diff --git a/src/VersionInfo.php b/src/VersionInfo.php index dc3ab18a7..9310a2c14 100644 --- a/src/VersionInfo.php +++ b/src/VersionInfo.php @@ -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(){