mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 18:11:52 +00:00
Merge branch 'next-minor' into next-major
This commit is contained in:
commit
4dabac8420
@ -7,8 +7,17 @@ Plugin developers should **only** update their required API to this version if y
|
|||||||
**WARNING: If your plugin uses the protocol, you're not shielded by API change constraints.** You should consider using the `mcpe-protocol` directive in `plugin.yml` as a constraint if you do.
|
**WARNING: If your plugin uses the protocol, you're not shielded by API change constraints.** You should consider using the `mcpe-protocol` directive in `plugin.yml` as a constraint if you do.
|
||||||
|
|
||||||
# 4.8.0
|
# 4.8.0
|
||||||
Released 9th August 2022.
|
Released 24th August 2022.
|
||||||
|
|
||||||
## General
|
## General
|
||||||
- Added support for Minecraft: Bedrock Edition 1.19.21.
|
- Added support for Minecraft: Bedrock Edition 1.19.21.
|
||||||
- Removed support for older versions.
|
- Removed support for older versions.
|
||||||
|
|
||||||
|
# 4.8.1
|
||||||
|
Released 26th August 2022.
|
||||||
|
|
||||||
|
## General
|
||||||
|
- Crashdumps now include JIT mode information for use by the Crash Archive.
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
- Fixed uninitialized offset error in `DyeColorIdMap` when given invalid dye color IDs.
|
||||||
|
@ -93,7 +93,7 @@ final class DyeColorIdMap{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function fromId(int $id) : ?DyeColor{
|
public function fromId(int $id) : ?DyeColor{
|
||||||
return $this->idToEnum[$id];
|
return $this->idToEnum[$id] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fromInvertedId(int $id) : ?DyeColor{
|
public function fromInvertedId(int $id) : ?DyeColor{
|
||||||
|
@ -331,8 +331,10 @@ class InventoryManager{
|
|||||||
|
|
||||||
public function onClientRemoveWindow(int $id) : void{
|
public function onClientRemoveWindow(int $id) : void{
|
||||||
if($id === $this->lastInventoryNetworkId){
|
if($id === $this->lastInventoryNetworkId){
|
||||||
|
if($id !== $this->pendingCloseWindowId){
|
||||||
$this->remove($id);
|
$this->remove($id);
|
||||||
$this->player->removeCurrentWindow();
|
$this->player->removeCurrentWindow();
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
$this->session->getLogger()->debug("Attempted to close inventory with network ID $id, but current is $this->lastInventoryNetworkId");
|
$this->session->getLogger()->debug("Attempted to close inventory with network ID $id, but current is $this->lastInventoryNetworkId");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user