mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improved handling of temporary inventory windows
evacuation behaviour is now consistent regardless of who is doing it
This commit is contained in:
@ -26,7 +26,7 @@ namespace pocketmine\inventory;
|
||||
use pocketmine\crafting\CraftingGrid;
|
||||
use pocketmine\player\Player;
|
||||
|
||||
final class PlayerCraftingInventory extends CraftingGrid{
|
||||
final class PlayerCraftingInventory extends CraftingGrid implements TemporaryInventory{
|
||||
|
||||
public function __construct(private Player $holder){
|
||||
parent::__construct(CraftingGrid::SIZE_SMALL);
|
||||
|
@ -25,7 +25,7 @@ namespace pocketmine\inventory;
|
||||
|
||||
use pocketmine\player\Player;
|
||||
|
||||
class PlayerCursorInventory extends SimpleInventory{
|
||||
class PlayerCursorInventory extends SimpleInventory implements TemporaryInventory{
|
||||
/** @var Player */
|
||||
protected $holder;
|
||||
|
||||
|
Reference in New Issue
Block a user